API: (bug 16158) Generators choke on pagelinks entries with negative pl_namespace...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 28 Oct 2008 14:35:48 +0000 (14:35 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 28 Oct 2008 14:35:48 +0000 (14:35 +0000)
includes/api/ApiPageSet.php

index 908ca22..31a8d1e 100644 (file)
@@ -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