* Fix notice error on nonexistent template in wikitext system message
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Feb 2005 07:14:25 +0000 (07:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Feb 2005 07:14:25 +0000 (07:14 +0000)
includes/Parser.php

index b5ef19f..dbc770f 100644 (file)
@@ -2084,7 +2084,9 @@ class Parser
                                }
 
                                # Template cache array insertion
-                               $this->mTemplates[$part1] = $text;
+                               if( $found ) {
+                                       $this->mTemplates[$part1] = $text;
+                               }
                        }
                }