(bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail because Main Page/. is not a valid title
This commit is contained in:
parent
b294f9a437
commit
0f639816ce
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue