Same for other skins, modify release note accordingly.
authorIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 21 Aug 2008 07:42:43 +0000 (07:42 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 21 Aug 2008 07:42:43 +0000 (07:42 +0000)
RELEASE-NOTES
includes/Skin.php

index adefdbd..118c38e 100644 (file)
@@ -139,8 +139,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Fix excessive memory usage when parsing pages with lots of links
 * $wgSpamRegex now matches the edit summary and page move descriptions in
   addition to body text.
-* The "image" tab on the Monobook skin now appears blue for images available
-  from a shared repository
+* Navigation links to images available from a shared repository (like Commons)
+  from their local talk pages no longer appear as redlinks
 
 
 === API changes in 1.14 ===
index d8c1232..0cb7322 100644 (file)
@@ -1605,6 +1605,8 @@ END;
                        return '';
                }
 
+               $linkOptions = array();
+
                if( $wgTitle->isTalkPage() ) {
                        $link = $wgTitle->getSubjectPage();
                        switch( $link->getNamespace() ) {
@@ -1619,6 +1621,9 @@ END;
                                        break;
                                case NS_IMAGE:
                                        $text = wfMsg( 'imagepage' );
+                                       # Make link known if image exists, even if the desc. page doesn't.
+                                       if( wfFindFile( $link ) )
+                                               $linkOptions[] = 'known';
                                        break;
                                case NS_MEDIAWIKI:
                                        $text = wfMsg( 'mediawikipage' );
@@ -1640,7 +1645,7 @@ END;
                        $text = wfMsg( 'talkpage' );
                }
 
-               $s = $this->makeLinkObj( $link, $text );
+               $s = $this->link( $link, $text, array(), array(), $linkOptions );
 
                return $s;
        }