Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -138,7 +138,9 @@ |
139 | 139 | |
140 | 140 | $preference = $wgUser->getOption( 'translate-editlangs' ); |
141 | 141 | if ( $preference !== 'default' ) { |
142 | | - return array_map( 'trim', explode( ',', $preference ) ); |
| 142 | + $fallbacks = array_map( 'trim', explode( ',', $preference ) ); |
| 143 | + foreach( $fallbacks as $k => $v ) if ( $v === $code ) unset($fallbacks[$k]); |
| 144 | + return $fallbacks; |
143 | 145 | } |
144 | 146 | |
145 | 147 | $fallbacks = array(); |