r92945 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92944‎ | r92945 | r92946 >
Date:14:50, 23 July 2011
Author:robin
Status:ok
Tags:
Comment:
Fix r89892 so it uses wgLang when appropriate.
Modified paths:
  • /trunk/extensions/OggHandler/OggHandler_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OggHandler/OggHandler_body.php
@@ -448,7 +448,7 @@
449449 }
450450
451451 function setHeaders( $out ) {
452 - global $wgOggScriptVersion, $wgCortadoJarFile, $wgServer, $wgContLang;
 452+ global $wgOggScriptVersion, $wgCortadoJarFile, $wgServer;
453453
454454 if ( $out->hasHeadItem( 'OggHandlerScript' ) && $out->hasHeadItem( 'OggHandlerInlineScript' ) &&
455455 $out->hasHeadItem( 'OggHandlerInlineCSS' ) ) {
@@ -471,7 +471,7 @@
472472 }
473473 $encCortadoUrl = Xml::encodeJsVar( $cortadoUrl );
474474 $encExtPathUrl = Xml::encodeJsVar( $scriptPath );
475 - $alignStart = $wgContLang->alignStart();
 475+ $alignStart = wfUILang()->alignStart();
476476
477477 $out->addHeadItem( 'OggHandlerScript' , Html::linkedScript( "{$scriptPath}/OggPlayer.js?$wgOggScriptVersion" ) );
478478

Follow-up revisions

RevisionCommit summaryAuthorDate
r92946merge r92945robin14:52, 23 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89892(bug 20044) Misaligned text on file pages (RTL wikis only)rotem20:27, 11 June 2011

Status & tagging log