Things like $wgSysopUserBans, $wgSysopRangeBans, $wgSysopEmailBans (and any similar ones?) should be phased out, turned into proper rights for $wgGroupPermissions and considered deprecated.
- $wgSysopUserBans
- $wgSysopRangeBans
- $wgSysopEmailBans
Things like $wgSysopUserBans, $wgSysopRangeBans, $wgSysopEmailBans (and any similar ones?) should be phased out, turned into proper rights for $wgGroupPermissions and considered deprecated.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Duplicate | None | T30530 Implementation of selective user block by namespaces for the Portuguese Wikipedia | |||
Open | Feature | None | T17821 Allow specific users to edit otherwise blocked articles | ||
Open | None | T27400 Software should allow admins to give specific users permission to edit specific pages through blocks | |||
Duplicate | None | T24316 Separate upload protection from edit protection | |||
Duplicate | None | T16636 Blocking/Permissions Rewrite | |||
Open | None | T11968 Reduce use of global and public variables | |||
Resolved | DannyS712 | T20807 Phase out right-related globals | |||
Resolved | DannyS712 | T232169 Deprecate `wgSysopEmailBans` | |||
Resolved | DannyS712 | T233116 Remove `$wgSysopEmailBans`, deprecated in 1.34 |
Making the changes isn't difficult. Just how the hell do we go about deprecating globals, making sure they work for x future versions (yay, backcompat :/)..?
Or do we just do it, and mark it in the release notes as a breaking change? (How many of these are used in extensions [Not looked myself, as I'm venting, whilst procrastinating from sleep])
Or would we do something like
$blah = false;
if ( $wgUser->isAllowed( 'blahaction' ) ) {
$blah = true;
} else {
global $wgBlahAction;
if ( isset( $wgBlahAction ) && $wgBlahAction ) {
//Maybe whinge about being deprecated
$blah = true;
}
}
if ( $blah ) {
//Do/allow optional shizz here
}
We should come up with a solution like the one in Comment 2 for reducing the globals Bug #9968
happy.melon.wiki wrote:
Most of Setup.php is configuration B/C; I think we probably need a clear-out and documentation blitz in there.
(In reply to Chad H. from comment #0)
Things like $wgSysopUserBans, $wgSysopRangeBans, $wgSysopEmailBans (and any
Only one remaining is $wgSysopEmailBans.