]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3613 added system message for admins when plugins are disabled
authorCash Costello <cash.costello@gmail.com>
Tue, 7 Feb 2012 12:50:19 +0000 (07:50 -0500)
committerCash Costello <cash.costello@gmail.com>
Tue, 7 Feb 2012 12:50:19 +0000 (07:50 -0500)
engine/lib/plugins.php
languages/en.php

index 70bfcb28bce7b46b71ea969e011e94dc48805a75..123fb18d89b5c9b4ffe67aa765261dbb5e4b42b1 100644 (file)
@@ -298,6 +298,9 @@ function elgg_load_plugins() {
 
        // temporary disable all plugins if there is a file called 'disabled' in the plugin dir
        if (file_exists("$plugins_path/disabled")) {
+               if (elgg_is_admin_logged_in() && elgg_in_context('admin')) {
+                       system_message(elgg_echo('plugins:disabled'));
+               }
                return false;
        }
 
index b34d1cc5871053f7ce4466986a7b838304d8b1f5..e44356479b3b73d6f2a3ed19ca382fd7eb219c5e 100644 (file)
@@ -665,6 +665,7 @@ $english = array(
 /**
  * Plugins
  */
+       'plugins:disabled' => 'Plugins are being loaded because a file named "disabled" is in the mod directory.',
        'plugins:settings:save:ok' => "Settings for the %s plugin were saved successfully.",
        'plugins:settings:save:fail' => "There was a problem saving settings for the %s plugin.",
        'plugins:usersettings:save:ok' => "User settings for the %s plugin were saved successfully.",