From: Rob Church Date: Sat, 25 Mar 2006 15:57:50 +0000 (+0000) Subject: Don't show the autopatrol preference if recent changes patrol is disabled X-Git-Tag: 1.6.0~132 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e052c4f566ab01d69c3b47dc8e039b721b673709;p=lhc%2Fweb%2Fwiklou.git Don't show the autopatrol preference if recent changes patrol is disabled --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 16a176fe0c..a3b5617ae2 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -798,7 +798,7 @@ class PreferencesForm { # Editing # - global $wgLivePreview; + global $wgLivePreview, $wgUseRCPatrol; $wgOut->addHTML( '
' . wfMsg( 'textboxsize' ) . '
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', ) ) . '
' );