r43100 - Code Review

From MediaWiki.org

Jump to: navigation, search
Repository:MediaWiki
Revision:r43099 | r43100 (on ViewVC) | r43101 >
Date:23:05, 2 November 2008
Author:siebrand
Status:ok
Tags:
Comment:(bug 15903) Add upload link to Nostalgia skin. Patch by Nikolaos S. Karastathis.
Modified paths:

Diff [purge]

Index: trunk/phase3/skins/Nostalgia.php
===================================================================
--- trunk/phase3/skins/Nostalgia.php	(revision 43099)
+++ trunk/phase3/skins/Nostalgia.php	(revision 43100)
@@ -53,7 +53,7 @@
 	}
 
 	function topLinks() {
-		global $wgOut, $wgUser;
+		global $wgOut, $wgUser, $wgEnableUploads;
 		$sep = " |\n";
 
 		$s = $this->mainPageLink() . $sep
@@ -71,6 +71,9 @@
 		if ( $wgUser->isAnon() ) {
 			$s .= $sep . $this->specialLink( "userlogin" );
 		} else {
+			if ( $wgEnableUploads ) {
+				$s .= $sep . $this->specialLink( "upload" );
+			}
 			$s .= $sep . $this->specialLink( "userlogout" );
 		}
 
Index: trunk/phase3/CREDITS
===================================================================
--- trunk/phase3/CREDITS	(revision 43099)
+++ trunk/phase3/CREDITS	(revision 43100)
@@ -58,6 +58,7 @@
 * Mormegil
 * Nathaniel Herman
 * Nathan Larson
+* Nikolaos S. Karastathis
 * Paul Copperman
 * RememberTheDot
 * ST47
Index: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES	(revision 43099)
+++ trunk/phase3/RELEASE-NOTES	(revision 43100)
@@ -189,6 +189,7 @@
 * (bug 15125) Add Public Domain to default options when installing. Patch by Nathan Larson.
 * Set a special temporary directory for ImageMagick with $wgImageMagickTempDir
 * (bug 16113) Show/hide for redirects in Special:NewPages
+* (bug 15903) Upload link was added to Nostalgia skin
 
 === Bug fixes in 1.14 ===
 
Views
Toolbox