From: Roan Kattouw Date: Tue, 28 Oct 2008 14:35:48 +0000 (+0000) Subject: API: (bug 16158) Generators choke on pagelinks entries with negative pl_namespace... X-Git-Tag: 1.31.0-rc.0~44535 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=2c4eae4b925cfd8da896ee74a3bfaea39396c194;p=lhc%2Fweb%2Fwiklou.git API: (bug 16158) Generators choke on pagelinks entries with negative pl_namespace. Throw a warning instead of an error for the time being --- diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 908ca220e2..31a8d1e468 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -587,9 +587,9 @@ class ApiPageSet extends ApiQueryBase { // Validation if ($titleObj->getNamespace() < 0) - $this->dieUsage("No support for special pages has been implemented", 'unsupportednamespace'); - - $linkBatch->addObj($titleObj); + $this->setWarning("No support for special pages has been implemented"); + else + $linkBatch->addObj($titleObj); } // Make sure we remember the original title that was given to us