Make the "image" tab blue for images without a local description page (such as Common...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 21 Aug 2008 07:25:28 +0000 (07:25 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 21 Aug 2008 07:25:28 +0000 (07:25 +0000)
RELEASE-NOTES
includes/SkinTemplate.php

index 1fb2af2..adefdbd 100644 (file)
@@ -139,6 +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
 
 
 === API changes in 1.14 ===
index 3beb863..cdcbb3b 100644 (file)
@@ -597,7 +597,8 @@ class SkinTemplate extends Skin {
                if( $selected ) {
                        $classes[] = 'selected';
                }
-               if( $checkEdit && !$title->isAlwaysKnown() && $title->getArticleId() == 0 ) {
+               if( $checkEdit && !$title->isAlwaysKnown() && $title->getArticleId() == 0 &&
+                       !($title->getNamespace() == NS_IMAGE && wfFindFile( $title )) ) {
                        $classes[] = 'new';
                        $query = 'action=edit';
                }