r47775 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47774‎ | r47775 | r47776 >
Date:00:48, 25 February 2009
Author:aaron
Status:ok
Tags:
Comment:
Whitespace :)
Modified paths:
  • /trunk/phase3/includes/Category.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -3386,7 +3386,7 @@
33873387 if( $this->mInterwiki != '' ) {
33883388 return true; // any interwiki link might be viewable, for all we know
33893389 }
3390 - switch( $this->mNamespace ) {
 3390+ switch( $this->mNamespace ) {
33913391 case NS_MEDIA:
33923392 case NS_FILE:
33933393 return wfFindFile( $this ); // file exists, possibly in a foreign repo
Index: trunk/phase3/includes/Category.php
@@ -41,8 +41,7 @@
4242 $dbr = wfGetDB( DB_SLAVE );
4343 $row = $dbr->selectRow(
4444 'category',
45 - array( 'cat_id', 'cat_title', 'cat_pages', 'cat_subcats',
46 - 'cat_files' ),
 45+ array( 'cat_id', 'cat_title', 'cat_pages', 'cat_subcats', 'cat_files' ),
4746 $where,
4847 __METHOD__
4948 );
@@ -70,8 +69,7 @@
7170 # (bug 13683) If the count is negative, then 1) it's obviously wrong
7271 # and should not be kept, and 2) we *probably* don't have to scan many
7372 # rows to obtain the correct figure, so let's risk a one-time recount.
74 - if( $this->mPages < 0 || $this->mSubcats < 0 ||
75 - $this->mFiles < 0 ) {
 73+ if( $this->mPages < 0 || $this->mSubcats < 0 || $this->mFiles < 0 ) {
7674 $this->refreshCounts();
7775 }
7876

Status & tagging log