Bläddra i källkod

* Now this sends $plugin_general_debug to the plugins too. If the plugins
aren't coded to accept the debug value for their setup function, then it
should be ignored safely.

Tyler Akins 24 år sedan
förälder
incheckning
5210c3a8d3
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      functions/plugin.php

+ 1 - 1
functions/plugin.php

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