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:
826bcef
)
Another regression from r36678: dieUsageMsg() expects an array, not varargs.
author
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 29 Jun 2008 22:29:08 +0000
(22:29 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Sun, 29 Jun 2008 22:29:08 +0000
(22:29 +0000)
includes/api/ApiQueryBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryBase.php
b/includes/api/ApiQueryBase.php
index
9094070
..
4661f0d
100644
(file)
--- a/
includes/api/ApiQueryBase.php
+++ b/
includes/api/ApiQueryBase.php
@@
-326,7
+326,7
@@
abstract class ApiQueryBase extends ApiBase {
public function titleToKey($title) {
$t = Title::newFromText($title);
if(!$t)
- $this->dieUsageMsg(
'invalidtitle', $title
);
+ $this->dieUsageMsg(
array('invalidtitle', $title)
);
return $t->getDbKey();
}
@@
-339,7
+339,7
@@
abstract class ApiQueryBase extends ApiBase {
$t = Title::newFromDbKey($key);
# This really shouldn't happen but we gotta check anyway
if(!$t)
- $this->dieUsageMsg(
'invalidtitle', $key
);
+ $this->dieUsageMsg(
array('invalidtitle', $key)
);
return $t->getPrefixedText();
}