* (bug 714) "plainlinks" class issues in IE, Opera
* (bug 4317) Inconsistent "broken redirects" messages
* Default interface text for "selflinks" tweaked
+* Removed broken wgAllowAnonymousMinor and added new group right minoredit
+
=== Caveats ===
$text="== {$summary} ==\n\n".$text;
}
$text = $this->preSaveTransform( $text );
- $isminor = ( $isminor && $wgUser->isLoggedIn() ) ? 1 : 0;
+
+ /* Silently ignore minoredit if not allowed */
+ $isminor = $isminor && $wgUser->isAllowed('minoredit');
$now = wfTimestampNow();
$dbw =& wfGetDB( DB_MASTER );
return false;
}
- $isminor = ( $minor && $wgUser->isLoggedIn() );
+ $isminor = $minor && $wgUser->isAllowed('minoredit');
if ( $this->isRedirect( $text ) ) {
$redir = 1;
- } else {
- $redir = 0;
+ } else {
+ $redir = 0;
}
$text = $this->preSaveTransform( $text );
$wgHitcounterUpdateFreq = 1;
# Basic user rights and block settings
-$wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
$wgSysopUserBans = true; # Allow sysops to ban logged-in users
$wgSysopRangeBans = true; # Allow sysops to ban IP ranges
$wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
$wgGroupPermissions['user' ]['upload'] = true;
$wgGroupPermissions['user' ]['reupload'] = true;
$wgGroupPermissions['user' ]['reupload-shared'] = true;
+$wgGroupPermissions['user' ]['minoredit'] = true;
// Implicit group for accounts that pass $wgAutoConfirmAge
$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
* near the top, for captchas and the like.
*/
function showEditForm( $formCallback=null ) {
- global $wgOut, $wgUser, $wgAllowAnonymousMinor, $wgLang, $wgContLang;
+ global $wgOut, $wgUser, $wgLang, $wgContLang;
$fname = 'EditPage::showEditForm';
wfProfileIn( $fname );
$minoredithtml = '';
- if ( $wgUser->isLoggedIn() || $wgAllowAnonymousMinor ) {
+ if ( $wgUser->isAllowed('minoredit') ) {
$minoredithtml =
"<input tabindex='3' type='checkbox' value='1' name='wpMinoredit'".($this->minoredit?" checked='checked'":"").
" accesskey='".wfMsg('accesskey-minoredit')."' id='wpMinoredit' />".