From: Nick Jenkins Date: Mon, 20 Aug 2007 08:13:16 +0000 (+0000) Subject: Variable $titleString seemed to be used before it was defined - removing. X-Git-Tag: 1.31.0-rc.0~51731 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=68dc0633160d5bb5c603d6b54bd98497dd6714f4;p=lhc%2Fweb%2Fwiklou.git Variable $titleString seemed to be used before it was defined - removing. --- diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 1fbb29f250..12da5fa4f5 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -580,7 +580,7 @@ class ApiPageSet extends ApiQueryBase { $titleObj = is_string($title) ? Title :: newFromText($title) : $title; if (!$titleObj) - $this->dieUsage("bad title $titleString", 'invalidtitle'); + $this->dieUsage("bad title", 'invalidtitle'); $iw = $titleObj->getInterwiki(); if (!empty($iw)) { @@ -590,7 +590,7 @@ class ApiPageSet extends ApiQueryBase { // Validation if ($titleObj->getNamespace() < 0) - $this->dieUsage("No support for special page $titleString has been implemented", 'unsupportednamespace'); + $this->dieUsage("No support for special pages has been implemented", 'unsupportednamespace'); $linkBatch->addObj($titleObj); }