r35895 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35894‎ | r35895 | r35896 >
Date:23:44, 4 June 2008
Author:aaron
Status:old
Tags:
Comment:
'0' is a title
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryBacklinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryBacklinks.php
@@ -263,9 +263,9 @@
264264 if (!is_null($this->params['continue']))
265265 $this->parseContinueParam();
266266 else {
267 - $title = $this->params['title'];
 267+ $title = Title::newFromText( $this->params['title'] );
268268 if ( $title ) {
269 - $this->rootTitle = Title::newFromText($title);
 269+ $this->rootTitle = $title;
270270 } else {
271271 $this->dieUsageMsg(array('missingparam', 'title'));
272272 }

Status & tagging log