r106087 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106086‎ | r106087 | r106088 >
Date:20:43, 13 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
Follow up to r106081; compat with 1.17 and 1.16
Modified paths:
  • /trunk/extensions/Translate/utils/MessageTable.php (modified) (history)
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/MessageTable.php
@@ -123,7 +123,8 @@
124124 global $wgLang;
125125 $niceTitle = htmlspecialchars( $wgLang->truncate( $key, - 30 ) );
126126
127 - $tools['edit'] = Linker::link(
 127+ $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker();
 128+ $tools['edit'] = $linker->link(
128129 $title,
129130 $niceTitle,
130131 TranslationEditPage::jsEdit( $title ),
Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -1181,7 +1181,8 @@
11821182
11831183 $jsEdit = TranslationEditPage::jsEdit( $target, $group );
11841184
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 );
11861187 }
11871188
11881189 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106081use linker::link instead of link on skin obtained via userjeroendedauw20:28, 13 December 2011

Status & tagging log