r74830 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74829‎ | r74830 | r74831 >
Date:10:05, 16 October 2010
Author:nad
Status:ok
Tags:
Comment:
change split to explode
Modified paths:
  • /trunk/extensions/SimpleSecurity/SimpleSecurity.php (modified) (history)
  • /trunk/extensions/SimpleSecurity/SimpleSecurity_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php
@@ -95,7 +95,7 @@
9696 */
9797 public function ifGroup( &$parser, $groups, $then, $else = '' ) {
9898 global $wgUser;
99 - $intersection = array_intersect( array_map( 'strtolower', split( ',', $groups ) ), $wgUser->getEffectiveGroups() );
 99+ $intersection = array_intersect( array_map( 'strtolower', explode( ',', $groups ) ), $wgUser->getEffectiveGroups() );
100100 return count( $intersection ) > 0 ? $then : $else;
101101 }
102102
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php
@@ -23,7 +23,7 @@
2424 if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' );
2525 if ( version_compare( $wgVersion, '1.12.0' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' );
2626
27 -define( 'SIMPLESECURITY_VERSION', '4.5.0, 2010-09-16' );
 27+define( 'SIMPLESECURITY_VERSION', '4.5.1, 2010-10-16' );
2828
2929 # Load the SimpleSecurity class and messages
3030 $dir = dirname( __FILE__ ) . '/';

Status & tagging log