From e9b1eb0875d8b7610c40d11add42c88422d600d8 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 8 Jan 2008 16:36:47 +0000 Subject: [PATCH] Changing name of error code to something making slightly more sense --- includes/api/ApiProtect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1