r69683 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69682‎ | r69683 | r69684 >
Date:14:40, 21 July 2010
Author:btongminh
Status:ok
Tags:
Comment:
Follow-up r69233: Add existence check for NS_MEDIA titles
Modified paths:
  • /trunk/phase3/includes/api/ApiQuery.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuery.php
@@ -397,6 +397,9 @@
398398 if ( $title->getNamespace() == NS_SPECIAL &&
399399 !SpecialPage::exists( $title->getText() ) ) {
400400 $vals['missing'] = '';
 401+ } elseif ( $title->getNamespace() == NS_MEDIA &&
 402+ !wfFindFile( $title ) ) {
 403+ $vals['missing'] = '';
401404 }
402405 $pages[$fakeId] = $vals;
403406 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69233(bug 24185) Titles in the Media and Special namespace are now supported for t...btongminh10:46, 10 July 2010

Status & tagging log