* Now this sends $plugin_general_debug to the plugins too. If the plugins
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Feb 2001 14:44:15 +0000 (14:44 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Feb 2001 14:44:15 +0000 (14:44 +0000)
  aren't coded to accept the debug value for their setup function, then it
  should be ignored safely.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1086 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/plugin.php

index 4b86b769824c00d8d8f76abce5745e87025edab4..34cb4bd6d1ecb958916fba9533adf0d8e2e35f46 100644 (file)
@@ -32,7 +32,7 @@
         {
            if ($plugin_general_debug)
               echo "plugin:  ---- Executing $function to init plugin<br>\n";
-            $function();
+            $function($plugin_general_debug);
         }
         elseif ($plugin_general_debug)
            echo "plugin:  -- Init function $function doesn't exist.<br>\n";