diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-12-30 17:44:47 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-12-30 17:44:47 +0000 |
commit | 64fd6fe8dbc39ebbb5667f492e46c59d5d2090a5 (patch) | |
tree | 7a0489dc811564a3d072d3029c91ec97d17ebdc5 /engine/lib | |
parent | 5d3199ebeeb5a260dfc2ebfa0e57b3584c99faae (diff) | |
download | elgg-64fd6fe8dbc39ebbb5667f492e46c59d5d2090a5.tar.gz elgg-64fd6fe8dbc39ebbb5667f492e46c59d5d2090a5.tar.bz2 |
Closes #608: Placing a file called "disabled" in mod now disables all plugins, allowing easier recovery of an elgg site with screwed up modules.
git-svn-id: https://code.elgg.org/elgg/trunk@2521 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/plugins.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 2f6519f0a..a6d10524a 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -213,7 +213,11 @@ function load_plugins() {
global $CONFIG;
- if (!empty($CONFIG->pluginspath)) {
+ if (!empty($CONFIG->pluginspath)) { + + // temporary disable all plugins if there is a file called 'disabled' in the plugin dir + if (file_exists($CONFIG->pluginspath . "disabled")) + return;
$plugins = get_plugin_list();
|