mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 11:59:13 -04:00
Move profiling and debugging out of the scaffolding and into the
developer module.
This commit is contained in:
@@ -86,6 +86,16 @@ class Admin_Developer_Controller extends Admin_Controller {
|
||||
}
|
||||
}
|
||||
|
||||
public function session($key) {
|
||||
if (!(user::active()->admin)) {
|
||||
throw new Exception("@todo UNAUTHORIZED", 401);
|
||||
}
|
||||
|
||||
Session::instance()->set($key, $this->input->get("value", false));
|
||||
$this->auto_render = false;
|
||||
url::redirect($_SERVER["HTTP_REFERER"]);
|
||||
}
|
||||
|
||||
private function _get_module_create_content($form, $errors) {
|
||||
$config = Kohana::config("developer.methods");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user