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