Merge "Parser: Don't use deprecated Title::setFragment()"
This commit is contained in:
commit
749f7624d9
1 changed files with 1 additions and 2 deletions
|
|
@ -739,8 +739,7 @@ class Parser {
|
|||
|
||||
if ( $t->hasFragment() ) {
|
||||
# Strip the fragment to avoid various odd effects
|
||||
$this->mTitle = clone $t;
|
||||
$this->mTitle->setFragment( '' );
|
||||
$this->mTitle = $t->createFragmentTarget( '' );
|
||||
} else {
|
||||
$this->mTitle = $t;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue