Merge "Don't record self-link from mw.title"

This commit is contained in:
jenkins-bot 2013-03-18 00:37:07 +00:00 committed by Gerrit Code Review
commit 13f27fdfa2

View file

@ -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 );
}