Added [[:Image:Foo.png]] style links to the pagelinks table
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 18 Aug 2006 05:00:16 +0000 (05:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 18 Aug 2006 05:00:16 +0000 (05:00 +0000)
RELEASE-NOTES
includes/Parser.php

index 0577d85..7fdffa8 100644 (file)
@@ -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 ==
index 745d2d3..e7166e0 100644 (file)
@@ -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;
        }