aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/plugins.php6
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();