From 2c4eae4b925cfd8da896ee74a3bfaea39396c194 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 28 Oct 2008 14:35:48 +0000 Subject: [PATCH] API: (bug 16158) Generators choke on pagelinks entries with negative pl_namespace. Throw a warning instead of an error for the time being --- includes/api/ApiPageSet.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1