From 0f639816ce8f5acca00e2e2106b0ecfb617eb3b3 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 4 Sep 2008 13:42:22 +0000 Subject: [PATCH] (bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail because Main Page/. is not a valid title --- includes/api/ApiQueryBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.20.1