Next batch of bug-fixes.
authorAndrew Garrett <werdna@users.mediawiki.org>
Thu, 11 Jan 2007 00:52:50 +0000 (00:52 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Thu, 11 Jan 2007 00:52:50 +0000 (00:52 +0000)
includes/Article.php

index bfec500..b8ab922 100644 (file)
@@ -2822,9 +2822,7 @@ class Article {
                        $result = array();
                        $id = $this->mTitle->getArticleID();
 
-                       if( $id == 0 ) {
-                               $tlTemplates = array();
-                       }
+                       $tlTemplates = array();
 
                        $dbr =& wfGetDB( DB_SLAVE );
                        $res = $dbr->select( array( 'templatelinks' ),