Fix bug in pre-save transform caught by tester
authorWil Mahan <wmahan@users.mediawiki.org>
Fri, 24 Sep 2004 02:38:20 +0000 (02:38 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Fri, 24 Sep 2004 02:38:20 +0000 (02:38 +0000)
includes/Parser.php

index 1549f82..999250c 100644 (file)
@@ -1771,7 +1771,7 @@ class Parser
 
                # Did we encounter this template already? If yes, it is in the cache
                # and we need to check for loops.
-               if ( isset( $this->mTemplates[$part1] ) ) {
+               if ( !$found && isset( $this->mTemplates[$part1] ) ) {
                        # Infinite loop test
                        if ( isset( $this->mTemplatePath[$part1] ) ) {
                                $noparse = true;