diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-10 00:34:23 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-10 00:34:23 +0000 |
commit | a7feeb576f491f285cb76cba0b99e01e7a3ae390 (patch) | |
tree | 8efe29cc0c989cbc1f9c4d38f82c46e14ff7ad3d /modules/akismet/controllers | |
parent | 48e73e90817a9c525ed50dc332d4a4341a8c6295 (diff) |
Big set of changes to comments, with related changes to akismet and
user modules.
* Don't delete vars when we delete a module. This makes
reinstalling a module a lot easier.
* Add user::lookup() as the preferred way to load a user, so that
other modules don't delve into the user module (that'd be a
problem when we swap out user modules)
* Notify site admins if Akismet is not fully configured
* Bundle all server variables into the comment so that if/when we
re-check the comment, we are not using the server info from the
site admin's request.
* Update Akismet to grab request context data from the comment
* Pre-seed comment fields if we have a logged in user. Update
comment::create() API to clarify it for this.
* Delete comment::update(), that's a controller function.
* Add url to User_Model
* Add author_name() author_email() and author_url() to
Comment_Model. It'll return the appropriate values depending
on whether the comment was left by a logged in user or a guest.
* Use resetForm() instead of clearForm() when we reload the
comment form after ajax submit, this way we preserve the
pre-seeded values.
* In the user profile page, ignore blank passwords.
Diffstat (limited to 'modules/akismet/controllers')
-rw-r--r-- | modules/akismet/controllers/admin_akismet.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/akismet/controllers/admin_akismet.php b/modules/akismet/controllers/admin_akismet.php index 487c68ce..f11c14ae 100644 --- a/modules/akismet/controllers/admin_akismet.php +++ b/modules/akismet/controllers/admin_akismet.php @@ -44,6 +44,7 @@ class Admin_Akismet_Controller extends Admin_Controller { log::success("akismet", t("Akismet key changed to $new_key")); module::set_var("akismet", "api_key", $new_key); + akismet::check_config(); url::redirect("admin/akismet"); } else { $valid_key = false; @@ -52,6 +53,7 @@ class Admin_Akismet_Controller extends Admin_Controller { $valid_key = module::get_var("akismet", "api_key") ? 1 : 0; } + akismet::check_config(); $view = new Admin_View("admin.html"); $view->content = new View("admin_akismet.html"); $view->content->valid_key = $valid_key; |