summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/admin_modules.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2011-04-23 23:26:40 -0400
committerChad Kieffer <ckieffer@gmail.com>2011-04-23 23:26:40 -0400
commitbbb2a3a30c57592b1baed17533bc3a2e7edb2e8a (patch)
tree8cac738aace3d4ae1d237fcd619a5e2e33275948 /modules/gallery/controllers/admin_modules.php
parent342be9818f8c35dd13c8159960a9f71ae33d4c72 (diff)
parent4c7f27a1a6a4fc71873093dd787de05a8ee6c079 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/admin_modules.php')
-rw-r--r--modules/gallery/controllers/admin_modules.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/controllers/admin_modules.php b/modules/gallery/controllers/admin_modules.php
index 787785ea..b712d14f 100644
--- a/modules/gallery/controllers/admin_modules.php
+++ b/modules/gallery/controllers/admin_modules.php
@@ -19,6 +19,9 @@
*/
class Admin_Modules_Controller extends Admin_Controller {
public function index() {
+ // If modules need upgrading, this will get recreated in module::available()
+ site_status::clear("upgrade_now");
+
$view = new Admin_View("admin.html");
$view->page_title = t("Modules");
$view->content = new View("admin_modules.html");
@@ -103,9 +106,6 @@ class Admin_Modules_Controller extends Admin_Controller {
module::event("module_change", $changes);
- // If modules need upgrading, this will get recreated
- site_status::clear("upgrade_now");
-
// @todo this type of collation is questionable from an i18n perspective
if ($activated_names) {
message::success(t("Activated: %names", array("names" => join(", ", $activated_names))));