rename print_init_params() to make_init_params()
This commit is contained in:
parent
f1f3a642d6
commit
d822130165
|
@ -3134,9 +3134,7 @@
|
|||
return array("param" => $param, "value" => $value);
|
||||
}
|
||||
|
||||
function print_init_params($link) {
|
||||
print "<init-params><![CDATA[";
|
||||
|
||||
function make_init_params($link) {
|
||||
$params = array();
|
||||
|
||||
array_push($params, make_init_param("theme", get_user_theme($link)));
|
||||
|
@ -3204,9 +3202,7 @@
|
|||
array_push($params, make_init_param("collapsed_feedlist",
|
||||
(int) get_pref($link, "_COLLAPSED_FEEDLIST")));
|
||||
|
||||
print json_encode($params);
|
||||
|
||||
print "]]></init-params>";
|
||||
return $params;
|
||||
}
|
||||
|
||||
function print_runtime_info($link) {
|
||||
|
|
|
@ -364,7 +364,11 @@
|
|||
print "<rpc-reply>";
|
||||
if (sanity_check($link)) {
|
||||
print "<error error-code=\"0\"/>";
|
||||
print_init_params($link);
|
||||
|
||||
print "<init-params><![CDATA[";
|
||||
print json_encode(make_init_params($link));
|
||||
print "]]></init-params>";
|
||||
|
||||
print_runtime_info($link);
|
||||
|
||||
# assign client-passed params to session
|
||||
|
|
Loading…
Reference in New Issue