From 90bc976ea59ba07849695cc1d394df5801c01f67 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Sun, 3 Jul 2005 05:21:06 +0000 Subject: [PATCH] don't display "Upload a new version" etc. for commons images, it has no meaning --- includes/ImagePage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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( '