From 47e302ad43059a684dfc44b0f5235e6536ae429d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 22 May 2007 02:52:37 +0000 Subject: [PATCH] *Update documentation, be explicit about access/scope to avoid E_STRICT errors --- includes/SpecialUpload.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ) ); -- 2.20.1