mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 08:14:09 +00:00
Merge "Don't record self-link from mw.title"
This commit is contained in:
commit
13f27fdfa2
|
@ -67,7 +67,7 @@ class Scribunto_LuaTitleLibrary extends Scribunto_LuaLibraryBase {
|
|||
$this->idCache[$title->getArticleID()] = $title;
|
||||
|
||||
// Record a link
|
||||
if ( $this->getParser() ) {
|
||||
if ( $this->getParser() && !$title->equals( $this->getTitle() ) ) {
|
||||
$this->getParser()->getOutput()->addLink( $title );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue