mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -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
@@ -23,7 +23,7 @@ class Reauthenticate_Controller extends Controller {
|
||||
access::forbidden();
|
||||
}
|
||||
if (request::is_ajax()) {
|
||||
print json_encode(array("form" => (string) self::_form()));
|
||||
json::reply(array("form" => (string) self::_form()));
|
||||
} else {
|
||||
self::_show_form(self::_form());
|
||||
}
|
||||
@@ -51,7 +51,7 @@ class Reauthenticate_Controller extends Controller {
|
||||
if (empty($reauthenticate["in_dialog"])) {
|
||||
self::_show_form($form);
|
||||
} else {
|
||||
print json_encode(array("form" => (string) $form));
|
||||
json::reply(array("form" => (string) $form));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user