Item10435: unconditional call to writeDebug

pencil
Priority: Low
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ExplicitNumberingPlugin
Branches:
Reported By: DiabJerius
Waiting For:
Last Change By: AndrewJones
There's a call to writeDebug which isn't conditional upon $debug being set. Here's a patch to fix it:

--- /var/www/default/templates/Foswiki-1.1.2/lib/Foswiki/Plugins/ExplicitNumberingPlugin.pm     2010-02-22 20:13:36.000000000 -0500
+++ lib/Foswiki/Plugins/ExplicitNumberingPlugin.pm      2011-03-02 16:52:12.000000000 -0500
@@ -111,7 +111,8 @@
     {
         {
             Foswiki::Func::writeDebug(
-                'ExplicitNumbering  - Disabled  - not view  context');
+                'ExplicitNumbering  - Disabled  - not view  context')
+                       if $debug;
             return ;
         }
     }

-- DiabJerius - 02 Mar 2011

Was already done in SVN. Now released.

-- AndrewJones - 04 May 2011

 
Topic revision: r2 - 04 May 2011, AndrewJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy