From 1d2b69a414bbca54e8b00c66c110a480a933ad94 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Wed, 21 Jul 2010 14:40:24 +0000 Subject: [PATCH] Follow-up r69233: Add existence check for NS_MEDIA titles --- includes/api/ApiQuery.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 43a2caf1e1..18c09549db 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -397,6 +397,9 @@ class ApiQuery extends ApiBase { if ( $title->getNamespace() == NS_SPECIAL && !SpecialPage::exists( $title->getText() ) ) { $vals['missing'] = ''; + } elseif ( $title->getNamespace() == NS_MEDIA && + !wfFindFile( $title ) ) { + $vals['missing'] = ''; } $pages[$fakeId] = $vals; } -- 2.20.1