From: Bryan Tong Minh Date: Sun, 23 Jan 2011 20:19:04 +0000 (+0000) Subject: Follow-up r69233: use getDbKey() instead of getText() for special pages. X-Git-Tag: 1.31.0-rc.0~32401 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=fe8d16bda9c2eee060a8bfea2bc29f23c4927388;p=lhc%2Fweb%2Fwiklou.git Follow-up r69233: use getDbKey() instead of getText() for special pages. --- 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 ) ) {