From: Ilmari Karonen Date: Thu, 21 Aug 2008 07:25:28 +0000 (+0000) Subject: Make the "image" tab blue for images without a local description page (such as Common... X-Git-Tag: 1.31.0-rc.0~45750 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=947ccadf7a3f10ad2bebff71fcd1919b6a1c91c3;p=lhc%2Fweb%2Fwiklou.git Make the "image" tab blue for images without a local description page (such as Commons images). --- 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'; }