r90917 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90916‎ | r90917 | r90918 >
Date:22:43, 27 June 2011
Author:dale
Status:deferred
Tags:
Comment:
added srt text to timed text page
Modified paths:
  • /trunk/extensions/TimedMediaHandler/TimedTextPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/TimedTextPage.php
@@ -41,7 +41,7 @@
4242 $wgOut->addHTML(
4343 xml::tags( 'table', array( 'style'=> 'border:none' ),
4444 xml::tags( 'tr', null,
45 - xml::tags( 'td', array( 'width' => self::$videoWidth ), $this->getVideoHTML( $videoTitle ) ) .
 45+ xml::tags( 'td', array( 'valign' => 'top', 'width' => self::$videoWidth ), $this->getVideoHTML( $videoTitle ) ) .
4646 xml::tags( 'td', array( 'valign' => 'top' ) , $this->getSrtHTML( $languageName ) )
4747 )
4848 )
@@ -74,5 +74,6 @@
7575 if( !$this->exists() ){
7676 return wfMessage( 'timedmedia-subtitle-no-subtitles', $languageName );
7777 }
 78+ return '<pre style="margin-top:0px;">'. $this->getContent() . "</pre>";
7879 }
7980 }
\ No newline at end of file

Status & tagging log