From: Roan Kattouw Date: Thu, 4 Sep 2008 13:42:22 +0000 (+0000) Subject: (bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail becau... X-Git-Tag: 1.31.0-rc.0~45489 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=0f639816ce8f5acca00e2e2106b0ecfb617eb3b3;p=lhc%2Fweb%2Fwiklou.git (bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail because Main Page/. is not a valid title --- diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 6d5d1eca40..61fb3658ec 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -355,7 +355,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Title part with underscores */ public function titlePartToKey($titlePart) { - return substr($this->titleToKey($titlePart . '.'), 0, -1); + return substr($this->titleToKey($titlePart . 'x'), 0, -1); } /** @@ -364,7 +364,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Key part with underscores */ public function keyPartToTitle($keyPart) { - return substr($this->keyToTitle($keyPart . '.'), 0, -1); + return substr($this->keyToTitle($keyPart . 'x'), 0, -1); } /**