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);
}
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) {

View file

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