Merge "Abstract and refactor Tidy support"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 11 Sep 2015 03:30:17 +0000 (03:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 11 Sep 2015 03:30:17 +0000 (03:30 +0000)
includes/page/ImagePage.php

index 62dd1e3..43b12b2 100644 (file)
@@ -709,7 +709,7 @@ EOT
                $out->addHTML( "<ul>\n" );
 
                # "Upload a new version of this file" link
-               $canUpload = $this->getTitle()->userCan( 'upload', $this->getContext()->getUser() );
+               $canUpload = $this->getTitle()->quickUserCan( 'upload', $this->getContext()->getUser() );
                if ( $canUpload && UploadBase::userCanReUpload(
                                $this->getContext()->getUser(),
                                $this->mPage->getFile()->name )