Follow-up r55613: Fix typo. I guess that 'baddaccess-groups' was a typo because such...
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 4 Nov 2009 16:07:42 +0000 (16:07 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 4 Nov 2009 16:07:42 +0000 (16:07 +0000)
But 'badaccess-groups' has two parameters: $1 a list of groups and $2 the count of them. These parameters are missing.

includes/api/ApiUpload.php

index 757d21c..3b8a7c3 100644 (file)
@@ -209,7 +209,7 @@ class ApiUpload extends ApiBase {
                $result = array();
                $permErrors = $this->mUpload->verifyPermissions( $wgUser );
                if( $permErrors !== true ) {
-                       $this->dieUsageMsg( array( 'baddaccess-groups' ) );
+                       $this->dieUsageMsg( array( 'badaccess-groups' ) );
                }
 
                // TODO: Move them to ApiBase's message map