aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-27 10:41:35 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-27 10:41:35 -0700
commit0179e8c68b0827d77c61a31c8c0d6bf4a277c785 (patch)
tree5899e1172afcbfcfe642b14afd76183f93736ad4 /views
parent79bc4476464e53d38a36f59f9a438f7592215951 (diff)
downloadelgg-0179e8c68b0827d77c61a31c8c0d6bf4a277c785.tar.gz
elgg-0179e8c68b0827d77c61a31c8c0d6bf4a277c785.tar.bz2
Fixes #3434. Manifests are checked more carefully on anything that checks deps. Disabling plugins with invalid manifests from admin page.
Diffstat (limited to 'views')
-rw-r--r--views/default/admin/plugins.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php
index 1aa899fcc..cd0b83c00 100644
--- a/views/default/admin/plugins.php
+++ b/views/default/admin/plugins.php
@@ -20,6 +20,11 @@ $categories = array();
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())));
+ $plugin->deactivate();
+ }
continue;
}