Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -973,15 +973,16 @@ |
974 | 974 | $ret = array(); |
975 | 975 | |
976 | 976 | if ( $this->mustBePosted() ) { |
977 | | - $ret = array_merge( $ret, array( array ( 'mustbeposted', $this->getModuleName() ) ) ); |
| 977 | + $ret[] = array ( 'mustbeposted', $this->getModuleName() ); |
978 | 978 | } |
979 | 979 | |
980 | 980 | if ( $this->isReadMode() ) { |
981 | | - $ret = array_merge( $ret, array( array ( 'readrequired' ) ) ); |
| 981 | + $ret[] = array ( 'readrequired' ); |
982 | 982 | } |
983 | 983 | |
984 | 984 | if ( $this->isWriteMode() ) { |
985 | | - $ret = array_merge( $ret, array( array ( 'writerequired' ), array( 'writedisabled' ) ) ); |
| 985 | + $ret[] = array ( 'writerequired' ); |
| 986 | + $ret[] = array ( 'writedisabled' ); |
986 | 987 | } |
987 | 988 | |
988 | 989 | return $ret; |