r80636 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80635‎ | r80636 | r80637 >
Date:19:24, 20 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed MediaWiki 1.16 compatibility issue
Modified paths:
  • /trunk/extensions/LiveTranslate/LiveTranslate.php (modified) (history)
  • /trunk/extensions/LiveTranslate/specials/SpecialLiveTranslate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/LiveTranslate.php
@@ -25,7 +25,7 @@
2626 die( 'Not an entry point.' );
2727 }
2828
29 -define( 'LiveTranslate_VERSION', '0.5' );
 29+define( 'LiveTranslate_VERSION', '0.5.1' );
3030
3131 $wgExtensionCredits['other'][] = array(
3232 'path' => __FILE__,
Index: trunk/extensions/LiveTranslate/specials/SpecialLiveTranslate.php
@@ -163,7 +163,7 @@
164164 protected function displayTMConfig( array $tms ) {
165165 global $wgOut, $wgUser;
166166
167 - $wgOut->addHtml( Html::openElement(
 167+ $wgOut->addHtml( Xml::openElement(
168168 'form',
169169 array(
170170 'id' => 'tmform',
@@ -189,7 +189,7 @@
190190
191191 $wgOut->addHTML( '<h3>' . htmlspecialchars( wfMsg( 'livetranslate-special-current-tms' ) ) . '</h3>' );
192192
193 - $wgOut->addHTML( Html::openElement(
 193+ $wgOut->addHTML( Xml::openElement(
194194 'table',
195195 array( 'class' => 'wikitable', 'style' => 'width:50%' )
196196 ) );
@@ -207,7 +207,7 @@
208208 $this->displayTMItem( $tm );
209209 }
210210
211 - $wgOut->addHTML( Html::closeElement( 'table' ) );
 211+ $wgOut->addHTML( Xml::closeElement( 'table' ) );
212212 }
213213 else {
214214 $wgOut->addWikiMsg( 'livetranslate-special-no-tms-yet' );
@@ -224,7 +224,7 @@
225225 array( 'id' => 'tmform-submit' )
226226 ) .
227227 Html::hidden( 'wpEditToken', $wgUser->editToken() ) .
228 - Html::closeElement( 'form' )
 228+ Xml::closeElement( 'form' )
229229 );
230230 }
231231

Status & tagging log