diff options
author | andyst <andy.st@gmail.com> | 2009-06-01 23:45:37 -0700 |
---|---|---|
committer | andyst <andy.st@gmail.com> | 2009-06-01 23:45:37 -0700 |
commit | 02a840c84cada5a1c0cc0768f350424460310e5d (patch) | |
tree | 6a35d4afddcf291327a4ff42245bca17328084ae /modules/recaptcha | |
parent | d0845aadc629cf10b8eee490a651c039750a1430 (diff) | |
parent | 3b6567f38c206f1302c7b22d94d5eae4b458311a (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/recaptcha')
-rw-r--r-- | modules/recaptcha/controllers/admin_recaptcha.php | 8 | ||||
-rw-r--r-- | modules/recaptcha/helpers/recaptcha_installer.php | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/modules/recaptcha/controllers/admin_recaptcha.php b/modules/recaptcha/controllers/admin_recaptcha.php index a8f85ed9..5813df8b 100644 --- a/modules/recaptcha/controllers/admin_recaptcha.php +++ b/modules/recaptcha/controllers/admin_recaptcha.php @@ -21,6 +21,8 @@ class Admin_Recaptcha_Controller extends Admin_Controller { public function index() { $form = recaptcha::get_configure_form(); if (request::method() == "post") { + // @todo move the "save" part of this into a separate controller function + access::verify_csrf(); $old_public_key = module::get_var("recaptcha", "public_key"); $old_private_key = module::get_var("recaptcha", "private_key"); if ($form->validate()) { @@ -55,10 +57,4 @@ class Admin_Recaptcha_Controller extends Admin_Controller { $view->content->form = $form; print $view; } - - public function test() { - $view = new View("admin_recaptcha_test.html"); - $view->public_key = module::get_var("recaptcha", "public_key"); - print $view; - } } diff --git a/modules/recaptcha/helpers/recaptcha_installer.php b/modules/recaptcha/helpers/recaptcha_installer.php index 6269c632..f74bf558 100644 --- a/modules/recaptcha/helpers/recaptcha_installer.php +++ b/modules/recaptcha/helpers/recaptcha_installer.php @@ -29,7 +29,7 @@ class recaptcha_installer { recaptcha::check_config(); } - static function uninstall() { + static function deactivate() { site_status::clear("recaptcha_config"); } } |