Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -1004,9 +1004,6 @@ |
1005 | 1005 | 'forceeditsummary', |
1006 | 1006 | ) ) ); |
1007 | 1007 | |
1008 | | - if( $wgUser->isAllowed( 'rollback' ) ) |
1009 | | - $wgOut->addHtml( $this->getToggle( 'norollbackdiff' ) ); |
1010 | | - |
1011 | 1008 | $wgOut->addHtml( '</fieldset>' ); |
1012 | 1009 | |
1013 | 1010 | # Recent changes |
— | — | @@ -1118,9 +1115,13 @@ |
1119 | 1116 | |
1120 | 1117 | foreach ( $togs as $tname ) { |
1121 | 1118 | if( !array_key_exists( $tname, $this->mUsedToggles ) ) { |
1122 | | - $wgOut->addHTML( $this->getToggle( $tname ) ); |
| 1119 | + if( $tname == 'norollbackdiff' && $wgUser->isAllowed( 'rollback' ) ) |
| 1120 | + $wgOut->addHTML( $this->getToggle( $tname ) ); |
| 1121 | + else |
| 1122 | + $wgOut->addHTML( $this->getToggle( $tname ) ); |
1123 | 1123 | } |
1124 | 1124 | } |
| 1125 | + |
1125 | 1126 | $wgOut->addHTML( '</fieldset>' ); |
1126 | 1127 | |
1127 | 1128 | wfRunHooks( 'RenderPreferencesForm', array( $this, $wgOut ) ); |