From: Aaron Schulz Date: Wed, 4 Jun 2008 23:44:13 +0000 (+0000) Subject: '0' is a title X-Git-Tag: 1.31.0-rc.0~47162 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=966352ed2fa517bb0698030c509edb887c1d8cbe;p=lhc%2Fweb%2Fwiklou.git '0' is a title --- diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 959c9fa339..e62fb07389 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -263,9 +263,9 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { if (!is_null($this->params['continue'])) $this->parseContinueParam(); else { - $title = $this->params['title']; + $title = Title::newFromText( $this->params['title'] ); if ( $title ) { - $this->rootTitle = Title::newFromText($title); + $this->rootTitle = $title; } else { $this->dieUsageMsg(array('missingparam', 'title')); }