From 947ccadf7a3f10ad2bebff71fcd1919b6a1c91c3 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Thu, 21 Aug 2008 07:25:28 +0000 Subject: [PATCH] Make the "image" tab blue for images without a local description page (such as Commons images). --- RELEASE-NOTES | 2 ++ includes/SkinTemplate.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1fb2af22da..adefdbdc2e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 3beb863b0c..cdcbb3b124 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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'; } -- 2.20.1