From: Roan Kattouw Date: Tue, 8 Jan 2008 16:36:47 +0000 (+0000) Subject: Changing name of error code to something making slightly more sense X-Git-Tag: 1.31.0-rc.0~50104 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e9b1eb0875d8b7610c40d11add42c88422d600d8;p=lhc%2Fweb%2Fwiklou.git Changing name of error code to something making slightly more sense --- diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 02d3e84bb7..bd9acaf85d 100644 --- 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);