Merge "SpecialWithoutInterwiki: Don't pass null through to Title::capitalize()"
This commit is contained in:
commit
762cc0acab
1 changed files with 2 additions and 2 deletions
|
|
@ -57,8 +57,8 @@ class SpecialWithoutInterwiki extends PageQueryPage {
|
|||
}
|
||||
|
||||
public function execute( $par ) {
|
||||
$this->prefix = Title::capitalize(
|
||||
$this->getRequest()->getVal( 'prefix', $par ), NS_MAIN );
|
||||
$prefix = $this->getRequest()->getVal( 'prefix', $par );
|
||||
$this->prefix = $prefix !== null ? Title::capitalize( $prefix, NS_MAIN ) : '';
|
||||
parent::execute( $par );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue