Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -159,17 +159,19 @@ |
160 | 160 | // Adapted version of TranslateUtils:makeListing() by Nikerabbit |
161 | 161 | $out = $tableheader; |
162 | 162 | |
| 163 | + $canTranslate = $wgUser->isAllowed( 'translate' ); |
| 164 | + |
163 | 165 | foreach ( $res as $s ) { |
164 | 166 | $key = $s->page_title; |
165 | 167 | $t = Title::makeTitle( $s->page_namespace, $key ); |
166 | 168 | |
167 | 169 | $niceTitle = htmlspecialchars( $this->getTheCode( $s->page_title ) ); |
168 | 170 | |
169 | | - if ( !$wgUser->isAllowed( 'translate' ) ) { |
| 171 | + if ( $canTranslate ) ) { |
170 | 172 | $tools['edit'] = $sk->link( |
171 | 173 | $t, |
172 | 174 | $niceTitle, |
173 | | - array(), |
| 175 | + array( 'action'), |
174 | 176 | array( |
175 | 177 | 'action' => 'edit', |
176 | 178 | 'loadgroup' => $inMessageGroup |