From 690d1f464b2b7ba70525304b7a7d7b44c52ce35f Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 20 May 2014 21:10:47 +0200 Subject: [PATCH] Add error 'pagecannotexist' to ApiBase::getTitleOrPageIdErrorMessage Function can die with 'pagecannotexist' since I2123e3a3034cb815cf35f66f2fbf2b94fb27069f Change-Id: I10c496da147c1bf6ceb6d69b19170a0e62f1318c --- includes/api/ApiBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index cfd4d01db1..b649adf4e1 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -907,6 +907,7 @@ abstract class ApiBase extends ContextSource { array( array( 'invalidtitle', 'title' ), array( 'nosuchpageid', 'pageid' ), + array( 'code' => 'pagecannotexist', 'info' => "Namespace doesn't allow actual pages" ), ) ); } -- 2.20.1