rename print_init_params() to make_init_params()

This commit is contained in:
Andrew Dolgov 2010-11-05 16:25:33 +03:00
parent f1f3a642d6
commit d822130165
2 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -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