From: River Tarnell Date: Sun, 3 Jul 2005 05:21:06 +0000 (+0000) Subject: don't display "Upload a new version" etc. for commons images, it has no meaning X-Git-Tag: 1.5.0beta2~61 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=90bc976ea59ba07849695cc1d394df5801c01f67;p=lhc%2Fweb%2Fwiklou.git don't display "Upload a new version" etc. for commons images, it has no meaning --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index a982b44416..b6ad080b59 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -267,7 +267,11 @@ class ImagePage extends Article { function uploadLinksBox() { - global $wgUser,$wgOut; + global $wgUser, $wgOut; + + if ($this->img->fromSharedDirectory) + return; + $sk = $wgUser->getSkin(); $wgOut->addHTML( '