From: Aaron Schulz Date: Tue, 22 May 2007 02:52:37 +0000 (+0000) Subject: *Update documentation, be explicit about access/scope to avoid E_STRICT errors X-Git-Tag: 1.31.0-rc.0~52831 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=47e302ad43059a684dfc44b0f5235e6536ae429d;p=lhc%2Fweb%2Fwiklou.git *Update documentation, be explicit about access/scope to avoid E_STRICT errors --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 8e3a2d7093..a3a134eba9 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -1311,17 +1311,16 @@ class UploadForm { * @param User $user * @param string $img, image name * @return bool - * @access private + * @access public */ - function userCanReUpload( $user, $img ) { + public static function userCanReUpload( $user, $img ) { if( $user->isAllowed('reupload' ) ) return true; // non-conditional if( !$user->isAllowed('reupload-own') ) return false; $dbr = wfGetDB( DB_SLAVE ); - $row = $dbr->selectRow( - /* FROM */ 'image', + $row = $dbr->selectRow('image', /* SELECT */ 'img_user', /* WHERE */ array( 'img_name' => $img ) );