r96200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96199‎ | r96200 | r96201 >
Date:15:30, 3 September 2011
Author:krinkle
Status:ok (Comments)
Tags:
Comment:
[RL2] Follow-up r96014: getText instead of getPrefixedText, we need it without namespace
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php
@@ -75,7 +75,7 @@
7676
7777 $title = Title::makeTitle( $row->gpl_namespace, $row->gpl_title );
7878 if ( is_null( $resultPageSet ) ) {
79 - $vals = array( 'pagename' => $title->getPrefixedText() );
 79+ $vals = array( 'pagename' => $title->getText() );
8080 self::addTitleInfo( $vals, $title );
8181 $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $vals );
8282 if ( !$fit ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96014RL2: Add pagename property to list=gadgetpages containing the page title with...catrope17:12, 1 September 2011

Comments

#Comment by Catrope (talk | contribs)   11:50, 5 September 2011

D'oh!

Status & tagging log