Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -6,7 +6,11 @@ |
7 | 7 | |
8 | 8 | var $guid = ''; |
9 | 9 | var $cache = array(); |
10 | | - var $info = array( 'LS' => array(), 'PR' => array(), 'CR' => array() ); |
| 10 | + var $info = array( |
| 11 | + 'LS' => array(), # security info for rules from LocalSettings ($wgPageRestrictions) |
| 12 | + 'PR' => array(), # security info for rules from protect tab |
| 13 | + 'CR' => array() # security info for rules which are currently in effect |
| 14 | + ); |
11 | 15 | |
12 | 16 | function __construct() { |
13 | 17 | global $wgParser, $wgHooks, $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions, $wgMessageCache, |
— | — | @@ -180,9 +184,6 @@ |
181 | 185 | } |
182 | 186 | if ( !is_object( $title ) ) return true; # If still no usable title bail |
183 | 187 | |
184 | | - $this->info['LS'] = array(); # security info for rules from LocalSettings ($wgPageRestrictions) |
185 | | - $this->info['PR'] = array(); # security info for rules from protect tab |
186 | | - $this->info['CR'] = array(); # security info for rules which are currently in effect |
187 | 188 | $groups = $user->getEffectiveGroups(); |
188 | 189 | |
189 | 190 | # Put the anon read right back in $wgGroupPermissions if it was there initially |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | */ |
22 | 22 | |
23 | 23 | if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' ); |
24 | | -if ( version_compare( $wgVersion, '1.12.0' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' ); |
| 24 | +if ( version_compare( $wgVersion, '1.12.1' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' ); |
25 | 25 | |
26 | 26 | define( 'SIMPLESECURITY_VERSION', '4.4.1, 2010-06-12' ); |
27 | 27 | |