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() ) {
|
if ( $t->hasFragment() ) {
|
||||||
# Strip the fragment to avoid various odd effects
|
# Strip the fragment to avoid various odd effects
|
||||||
$this->mTitle = clone $t;
|
$this->mTitle = $t->createFragmentTarget( '' );
|
||||||
$this->mTitle->setFragment( '' );
|
|
||||||
} else {
|
} else {
|
||||||
$this->mTitle = $t;
|
$this->mTitle = $t;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue