(bug 15903) Add upload link to Nostalgia skin. Patch by Nikolaos S. Karastathis.
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 2 Nov 2008 23:05:05 +0000 (23:05 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 2 Nov 2008 23:05:05 +0000 (23:05 +0000)
CREDITS
RELEASE-NOTES
skins/Nostalgia.php

diff --git a/CREDITS b/CREDITS
index 6d2ac09..6c0a676 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -58,6 +58,7 @@ following names for their contribution to the product.
 * Mormegil
 * Nathaniel Herman
 * Nathan Larson
+* Nikolaos S. Karastathis
 * Paul Copperman
 * RememberTheDot
 * ST47
index a216ff7..257d4e9 100644 (file)
@@ -189,6 +189,7 @@ The following extensions are migrated into MediaWiki 1.14:
 * (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 ===
 
index 70e4dfc..b713cf3 100644 (file)
@@ -53,7 +53,7 @@ class SkinNostalgia extends Skin {
        }
 
        function topLinks() {
-               global $wgOut, $wgUser;
+               global $wgOut, $wgUser, $wgEnableUploads;
                $sep = " |\n";
 
                $s = $this->mainPageLink() . $sep
@@ -71,6 +71,9 @@ class SkinNostalgia extends Skin {
                if ( $wgUser->isAnon() ) {
                        $s .= $sep . $this->specialLink( "userlogin" );
                } else {
+                       if ( $wgEnableUploads ) {
+                               $s .= $sep . $this->specialLink( "upload" );
+                       }
                        $s .= $sep . $this->specialLink( "userlogout" );
                }