mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
More patches as part of #1225. Change the 'core' modules to use the json::reply
method to set the content type header and encode the response as a json object
This commit is contained in:
committed by
Bharat Mediratta
parent
89d18c0714
commit
91a2c04a24
@@ -47,14 +47,14 @@ class Organize_Controller extends Controller {
|
||||
$v->controller_uri = url::site("organize") . "/";
|
||||
$v->swf_uri = url::file("modules/organize/lib/Gallery3WebClient.swf?") .
|
||||
filemtime(MODPATH . "organize/lib/Gallery3WebClient.swf");
|
||||
print json_encode(array("form" => (string) $v));
|
||||
json::reply(array("form" => (string) $v));
|
||||
}
|
||||
|
||||
function add_album_fields() {
|
||||
print json_encode(array("title" => (string)t("Title"),
|
||||
"description" => (string)t("Description"),
|
||||
"name" => (string)t("Directory name"),
|
||||
"slug" => (string)t("Internet Address")));
|
||||
json::reply(array("title" => (string)t("Title"),
|
||||
"description" => (string)t("Description"),
|
||||
"name" => (string)t("Directory name"),
|
||||
"slug" => (string)t("Internet Address")));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user