Changing name of error code to something making slightly more sense
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:36:47 +0000 (16:36 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 8 Jan 2008 16:36:47 +0000 (16:36 +0000)
includes/api/ApiProtect.php

index 02d3e84..bd9acaf 100644 (file)
@@ -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);