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:
7523ddf
)
Changing name of error code to something making slightly more sense
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:36:47 +0000
(16:36 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:36:47 +0000
(16:36 +0000)
includes/api/ApiProtect.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiProtect.php
b/includes/api/ApiProtect.php
index
02d3e84
..
bd9acaf
100644
(file)
--- a/
includes/api/ApiProtect.php
+++ b/
includes/api/ApiProtect.php
@@
-83,7
+83,7
@@
class ApiProtect extends ApiBase {
if($titleObj->exists() && $p[0] == 'create')
$this->dieUsage("Existing titles can't be protected with 'create'", 'create-titleexists');
if(!$titleObj->exists() && $p[0] != 'create')
- $this->dieUsage("Missing titles can only be protected with 'create'", '
create-
missingtitle');
+ $this->dieUsage("Missing titles can only be protected with 'create'", 'missingtitle');
}
$dbw = wfGetDb(DB_MASTER);