aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugins.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-10-30 12:00:12 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-10-30 12:00:12 -0700
commit3f9abf384029bf3fc899be2eead4e3121d20e331 (patch)
treecddfec4455313a67c414072aadd63e439dc910fd /views/default/admin/plugins.php
parenta50dd81e3737d8dc14f4a700255b3a19c58988b1 (diff)
downloadelgg-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/admin/plugins.php')
-rw-r--r--views/default/admin/plugins.php3
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;