From: Alex Monk Date: Mon, 13 Aug 2012 20:15:53 +0000 (+0100) Subject: (bug 24491) Don't show reupload link if the user can't upload because of protection X-Git-Tag: 1.31.0-rc.0~22642 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=d04502b698cc42e99cf24a73ac58847b6f1f2e77;p=lhc%2Fweb%2Fwiklou.git (bug 24491) Don't show reupload link if the user can't upload because of protection Instead, show some text explaining that they cannot upload here. Also remove a linebreak which someone complained about recently. Change-Id: I92ab8ad5eebcdd38c0d5d9f7bab7d11e5c844586 --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index dad10c85a5..7aed39221e 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -654,12 +654,15 @@ EOT } $out = $this->getContext()->getOutput(); - $out->addHTML( "