(bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail becau...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 4 Sep 2008 13:42:22 +0000 (13:42 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 4 Sep 2008 13:42:22 +0000 (13:42 +0000)
includes/api/ApiQueryBase.php

index 6d5d1ec..61fb365 100644 (file)
@@ -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);
        }
 
        /**