From: umherirrender Date: Tue, 20 May 2014 19:10:47 +0000 (+0200) Subject: Add error 'pagecannotexist' to ApiBase::getTitleOrPageIdErrorMessage X-Git-Tag: 1.31.0-rc.0~15453 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=690d1f464b2b7ba70525304b7a7d7b44c52ce35f;p=lhc%2Fweb%2Fwiklou.git Add error 'pagecannotexist' to ApiBase::getTitleOrPageIdErrorMessage Function can die with 'pagecannotexist' since I2123e3a3034cb815cf35f66f2fbf2b94fb27069f Change-Id: I10c496da147c1bf6ceb6d69b19170a0e62f1318c --- 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" ), ) ); }