From: Tim Starling Date: Fri, 18 Aug 2006 05:00:16 +0000 (+0000) Subject: Added [[:Image:Foo.png]] style links to the pagelinks table X-Git-Tag: 1.31.0-rc.0~55959 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=5e75e9bc2216d1e536476f45439203f3094b982e;p=lhc%2Fweb%2Fwiklou.git Added [[:Image:Foo.png]] style links to the pagelinks table --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0577d85366..7fdffa8de9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -139,6 +139,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7031) Report missing email on 'email password' instead of false success * (bug 7010) Don't send email notifications for watched talk pages when user has selected to receive only updates for their own talk page +* Added {{CURRENTHOUR}} +* Added [[:Image:Foo.png]] style links to the pagelinks table == Languages updated == diff --git a/includes/Parser.php b/includes/Parser.php index 745d2d3ee3..e7166e0bdc 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1745,6 +1745,7 @@ class Parser // upload on the shared repository, and we want to see its // auto-generated page. $s .= $this->makeKnownLinkHolder( $nt, $text, '', $trail, $prefix ); + $this->mOutput->addLink( $nt ); continue; } } @@ -4460,12 +4461,15 @@ class ParserOutput return (bool)$this->mNewSection; } - function addLink( $title, $id ) { + function addLink( $title, $id = null ) { $ns = $title->getNamespace(); $dbk = $title->getDBkey(); if ( !isset( $this->mLinks[$ns] ) ) { $this->mLinks[$ns] = array(); } + if ( is_null( $id ) ) { + $id = $title->getArticleID(); + } $this->mLinks[$ns][$dbk] = $id; }