*Update documentation, be explicit about access/scope to avoid E_STRICT errors
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 22 May 2007 02:52:37 +0000 (02:52 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 22 May 2007 02:52:37 +0000 (02:52 +0000)
includes/SpecialUpload.php

index 8e3a2d7..a3a134e 100644 (file)
@@ -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 )
                );