From fe8d16bda9c2eee060a8bfea2bc29f23c4927388 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sun, 23 Jan 2011 20:19:04 +0000 Subject: [PATCH] Follow-up r69233: use getDbKey() instead of getText() for special pages. --- includes/api/ApiQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 89689d80c2..d7b7d8a119 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -430,7 +430,7 @@ class ApiQuery extends ApiBase { ApiQueryBase::addTitleInfo( $vals, $title ); $vals['special'] = ''; if ( $title->getNamespace() == NS_SPECIAL && - !SpecialPage::exists( $title->getText() ) ) { + !SpecialPage::exists( $title->getDbKey() ) ) { $vals['missing'] = ''; } elseif ( $title->getNamespace() == NS_MEDIA && !wfFindFile( $title ) ) { -- 2.20.1