Revert r44367; ends up with an extra fetch :/
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 9 Dec 2008 22:28:34 +0000 (22:28 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 9 Dec 2008 22:28:34 +0000 (22:28 +0000)
includes/Article.php

index 88b182e..8061efb 100644 (file)
@@ -372,8 +372,7 @@ class Article {
                        $this->mTitle->mTouched = wfTimestamp( TS_MW, $data->page_touched );
 
                        # Old-fashioned restrictions
-                       if( $data->page_restrictions )
-                               $this->mTitle->loadRestrictions( $data->page_restrictions );
+                       $this->mTitle->loadRestrictions( $data->page_restrictions );
 
                        $this->mCounter     = $data->page_counter;
                        $this->mTouched     = wfTimestamp( TS_MW, $data->page_touched );