Don't show the autopatrol preference if recent changes patrol is disabled

This commit is contained in:
Rob Church 2006-03-25 15:57:50 +00:00
parent 8902bcff5b
commit e052c4f566

View file

@ -798,7 +798,7 @@ class PreferencesForm {
# Editing
#
global $wgLivePreview;
global $wgLivePreview, $wgUseRCPatrol;
$wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'textboxsize' ) . '</legend>
<div>
<label for="wpRows">' . wfMsg( 'rows' ) . "</label> <input type='text' name='wpRows' id='wpRows' value=\"{$this->mRows}\" size='3' />
@ -818,7 +818,7 @@ class PreferencesForm {
'externaleditor',
'externaldiff',
$wgLivePreview ? 'uselivepreview' : false,
$wgUser->isAllowed( 'patrol' ) ? 'autopatrol' : false,
$wgUser->isAllowed( 'patrol' ) && $wgUseRCPatrol ? 'autopatrol' : false,
'forceeditsummary',
) ) . '</fieldset>'
);