Whitespace, and flag hack
authorRob Church <robchurch@users.mediawiki.org>
Thu, 12 Jan 2006 20:56:55 +0000 (20:56 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 12 Jan 2006 20:56:55 +0000 (20:56 +0000)
includes/Parser.php

index 0b3d92d..08575c1 100644 (file)
@@ -3289,9 +3289,8 @@ class Parser
                );
                
                $text = preg_replace( '/~{3,5}/', '', $text );
-               if( $parsing) {
-                       $text = $this->replaceVariables( $text );
-               }
+               # TODO: Fix this, it's an ugly hack
+               if( $parsing ) { $text = $this->replaceVariables( $text ); }
 
        
                return $text;