mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Detect out-of-date modules and put up a message for site admins.
Fixes ticket #1353.
This commit is contained in:
@@ -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))));
|
||||
|
||||
Reference in New Issue
Block a user