Index: trunk/extensions/DynamicSidebar/DynamicSidebar.body.php |
— | — | @@ -150,15 +150,11 @@ |
151 | 151 | * @access private |
152 | 152 | */ |
153 | 153 | private static function printDebug( $debugText, $debugArr = null ) { |
154 | | - global $wgDynamicSidebarDebug; |
155 | | - |
156 | | - if ( $wgDynamicSidebarDebug ) { |
157 | | - if ( isset( $debugArr ) ) { |
158 | | - $text = $debugText . " " . implode( "::", $debugArr ); |
159 | | - wfDebugLog( 'dynamic-sidebar', $text, false ); |
160 | | - } else { |
161 | | - wfDebugLog( 'dynamic-sidebar', $debugText, false ); |
162 | | - } |
| 154 | + if ( isset( $debugArr ) ) { |
| 155 | + $text = $debugText . " " . implode( "::", $debugArr ); |
| 156 | + wfDebugLog( 'dynamic-sidebar', $text, false ); |
| 157 | + } else { |
| 158 | + wfDebugLog( 'dynamic-sidebar', $debugText, false ); |
163 | 159 | } |
164 | 160 | } |
165 | 161 | } |
Index: trunk/extensions/DynamicSidebar/DynamicSidebar.php |
— | — | @@ -25,7 +25,6 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | // Set defaults |
29 | | -$wgDynamicSidebarDebug = false; |
30 | 29 | $wgDynamicSidebarUseUserpages = true; |
31 | 30 | $wgDynamicSidebarUseGroups = true; |
32 | 31 | $wgDynamicSidebarUseCategories = true; |