From 64fd6fe8dbc39ebbb5667f492e46c59d5d2090a5 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 30 Dec 2008 17:44:47 +0000 Subject: 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 --- engine/lib/plugins.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/plugins.php') 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(); -- cgit v1.2.3