Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | */ |
97 | 97 | public function ifGroup( &$parser, $groups, $then, $else = '' ) { |
98 | 98 | global $wgUser; |
99 | | - $intersection = array_intersect( array_map( 'strtolower', split( ',', $groups ) ), $wgUser->getEffectiveGroups() ); |
| 99 | + $intersection = array_intersect( array_map( 'strtolower', explode( ',', $groups ) ), $wgUser->getEffectiveGroups() ); |
100 | 100 | return count( $intersection ) > 0 ? $then : $else; |
101 | 101 | } |
102 | 102 | |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' ); |
25 | 25 | if ( version_compare( $wgVersion, '1.12.0' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' ); |
26 | 26 | |
27 | | -define( 'SIMPLESECURITY_VERSION', '4.5.0, 2010-09-16' ); |
| 27 | +define( 'SIMPLESECURITY_VERSION', '4.5.1, 2010-10-16' ); |
28 | 28 | |
29 | 29 | # Load the SimpleSecurity class and messages |
30 | 30 | $dir = dirname( __FILE__ ) . '/'; |