Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -123,7 +123,8 @@ |
124 | 124 | global $wgLang; |
125 | 125 | $niceTitle = htmlspecialchars( $wgLang->truncate( $key, - 30 ) ); |
126 | 126 | |
127 | | - $tools['edit'] = Linker::link( |
| 127 | + $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker(); |
| 128 | + $tools['edit'] = $linker->link( |
128 | 129 | $title, |
129 | 130 | $niceTitle, |
130 | 131 | TranslationEditPage::jsEdit( $title ), |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -1181,7 +1181,8 @@ |
1182 | 1182 | |
1183 | 1183 | $jsEdit = TranslationEditPage::jsEdit( $target, $group ); |
1184 | 1184 | |
1185 | | - return Linker::link( $target, $text, $jsEdit, $params ); |
| 1185 | + $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker(); |
| 1186 | + return $linker->link( $target, $text, $jsEdit, $params ); |
1186 | 1187 | } |
1187 | 1188 | |
1188 | 1189 | /** |