From 966352ed2fa517bb0698030c509edb887c1d8cbe Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 4 Jun 2008 23:44:13 +0000 Subject: [PATCH] '0' is a title --- includes/api/ApiQueryBacklinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); } -- 2.20.1