dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a18b6a
)
API: (bug 16158) Generators choke on pagelinks entries with negative pl_namespace...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 28 Oct 2008 14:35:48 +0000
(14:35 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 28 Oct 2008 14:35:48 +0000
(14:35 +0000)
includes/api/ApiPageSet.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiPageSet.php
b/includes/api/ApiPageSet.php
index
908ca22
..
31a8d1e
100644
(file)
--- 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