Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -94,9 +94,6 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | public function contents() { |
98 | | - global $wgUser; |
99 | | - $sk = $wgUser->getSkin(); |
100 | | - |
101 | 98 | $optional = wfMsgHtml( 'translate-optional' ); |
102 | 99 | |
103 | 100 | $this->doLinkBatch(); |
— | — | @@ -126,7 +123,7 @@ |
127 | 124 | global $wgLang; |
128 | 125 | $niceTitle = htmlspecialchars( $wgLang->truncate( $key, - 30 ) ); |
129 | 126 | |
130 | | - $tools['edit'] = $sk->link( |
| 127 | + $tools['edit'] = Linker::link( |
131 | 128 | $title, |
132 | 129 | $niceTitle, |
133 | 130 | TranslationEditPage::jsEdit( $title ), |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -1172,8 +1172,6 @@ |
1173 | 1173 | * @return link |
1174 | 1174 | */ |
1175 | 1175 | public static function ajaxEditLink( $target, $text ) { |
1176 | | - global $wgUser; |
1177 | | - |
1178 | 1176 | list( $page, ) = TranslateEditAddons::figureMessage( $target ); |
1179 | 1177 | $group = TranslateUtils::messageKeyToGroup( $target->getNamespace(), $page ); |
1180 | 1178 | |
— | — | @@ -1183,7 +1181,7 @@ |
1184 | 1182 | |
1185 | 1183 | $jsEdit = TranslationEditPage::jsEdit( $target, $group ); |
1186 | 1184 | |
1187 | | - return $wgUser->getSkin()->link( $target, $text, $jsEdit, $params ); |
| 1185 | + return Linker::link( $target, $text, $jsEdit, $params ); |
1188 | 1186 | } |
1189 | 1187 | |
1190 | 1188 | /** |