summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/admin_modules.php
diff options
context:
space:
mode:
authormamouneyya <mamoun.diraneyya@gmail.com>2010-09-20 04:30:34 +0300
committermamouneyya <mamoun.diraneyya@gmail.com>2010-09-20 04:30:34 +0300
commitce80259d6939e43aaea34eba7bea4b2a602a5019 (patch)
tree7ca81d874b62c5a2c0244657aa903d565a7e6b04 /modules/gallery/controllers/admin_modules.php
parentba950bec0c84a1467aa2545ca815d5af7b0b002b (diff)
parent93d1a8103e757a87fb006f2389f0ee24497367a7 (diff)
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/controllers/admin_modules.php')
-rw-r--r--modules/gallery/controllers/admin_modules.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/controllers/admin_modules.php b/modules/gallery/controllers/admin_modules.php
index f5af9a5a..650b7e9e 100644
--- a/modules/gallery/controllers/admin_modules.php
+++ b/modules/gallery/controllers/admin_modules.php
@@ -95,12 +95,17 @@ class Admin_Modules_Controller extends Admin_Controller {
$activated_names[] = t($info->name);
}
} catch (Exception $e) {
+ message::warning(t("An error occurred while installing the <b>%module_name</b> module",
+ array("module_name" => $info->name)));
Kohana_Log::add("error", (string)$e);
}
}
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))));