diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-10-30 12:00:12 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-10-30 12:00:12 -0700 |
commit | 3f9abf384029bf3fc899be2eead4e3121d20e331 (patch) | |
tree | cddfec4455313a67c414072aadd63e439dc910fd /views/default | |
parent | a50dd81e3737d8dc14f4a700255b3a19c58988b1 (diff) | |
download | elgg-3f9abf384029bf3fc899be2eead4e3121d20e331.tar.gz elgg-3f9abf384029bf3fc899be2eead4e3121d20e331.tar.bz2 |
Fixes #2821. Plugins that are active and cannot be started emit an admin notice.
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/admin/plugins.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php index 5bd0dd55d..c3e7e3ab0 100644 --- a/views/default/admin/plugins.php +++ b/views/default/admin/plugins.php @@ -22,7 +22,8 @@ foreach ($installed_plugins as $id => $plugin) { if (!$plugin->isValid()) { if ($plugin->isActive()) { // force disable and warn - register_error(elgg_echo('ElggPlugin:InvalidAndDeactivated', array($plugin->getId()))); + elgg_add_admin_notice('invalid_and_deactivated_' . $plugin->getID(), + elgg_echo('ElggPlugin:InvalidAndDeactivated', array($plugin->getId()))); $plugin->deactivate(); } continue; |