Index: trunk/phase3/includes/SiteStats.php |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | wfProfileIn( __METHOD__ ); |
181 | 181 | if( !isset( self::$pageCount[$ns] ) ) { |
182 | 182 | $dbr = wfGetDB( DB_SLAVE ); |
183 | | - $pageCount[$ns] = (int)$dbr->selectField( |
| 183 | + self::$pageCount[$ns] = (int)$dbr->selectField( |
184 | 184 | 'page', |
185 | 185 | 'COUNT(*)', |
186 | 186 | array( 'page_namespace' => $ns ), |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | ); |
189 | 189 | } |
190 | 190 | wfProfileOut( __METHOD__ ); |
191 | | - return $pageCount[$ns]; |
| 191 | + return self::$pageCount[$ns]; |
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |