don't display "Upload a new version" etc. for commons images, it has no meaning
[lhc/web/wiklou.git] / includes / ImagePage.php
index a982b44..b6ad080 100644 (file)
@@ -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( '<br /><ul><li>' );
                $wgOut->addWikiText( '<div>'. wfMsg( 'uploadnewversion', $this->getUploadUrl() ) .'</div>' );