r70196 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70195‎ | r70196 | r70197 >
Date:17:54, 30 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Restore compatibility with 1.16
Modified paths:
  • /trunk/extensions/Translate/utils/MessageTable.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/MessageTable.php
@@ -119,7 +119,10 @@
120120 $optional = wfMsgHtml( 'translate-optional' );
121121
122122 $batch = new LinkBatch();
123 - $batch->setCaller( __METHOD__ );
 123+ if ( method_exists( $batch, 'setCaller' ) ) {
 124+ $batch->setCaller( __METHOD__ );
 125+ }
 126+
124127 $ns = $this->group->getNamespace();
125128
126129 foreach ( $this->collection->keys() as $key ) {

Status & tagging log