r31822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31821‎ | r31822 | r31823 >
Date:21:52, 11 March 2008
Author:dale
Status:old
Tags:
Comment:
relative url made absolute for roe export
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_Title.php (modified) (history)
  • /trunk/extensions/MetavidWiki/includes/specials/MV_SpecialExport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/specials/MV_SpecialExport.php
@@ -152,7 +152,7 @@
153153 }
154154 //start high level:
155155 function get_roe_xml($header=true){
156 - global $mvDefaultVideoQualityKey;
 156+ global $mvDefaultVideoQualityKey, $wgServer;
157157 $dbr =& wfGetDB(DB_SLAVE);
158158
159159 $this->get_row_data();
@@ -166,7 +166,7 @@
167167 <ROE>
168168 <head>
169169 <link id="html_linkback" rel="alternate" type="text/html" href="<?=htmlentities($this->streamPageTitle->getFullURL() )?>" />
170 - <img id="stream_thumb" src="<?=htmlentities($this->mvTitle->getStreamImageURL())?>"/>
 170+ <img id="stream_thumb" src="<?=htmlentities($this->mvTitle->getFullStreamImageURL())?>"/>
171171 <title><?=htmlentities($this->mvTitle->getTitleDesc())?></title>
172172 </head>
173173 <body>
@@ -247,7 +247,7 @@
248248 if(!isset($tracks[$mvd->mvd_type]))$tracks[$mvd->mvd_type]='';
249249 $tracks[$mvd->mvd_type].='
250250 <'.$ns.'clip id="mvd_'.$mvd->id.'" start="ntp:'.seconds2ntp($mvd->start_time).'" end="ntp:'.seconds2ntp($mvd->end_time).'">
251 - <'.$ns.'img src="'.htmlentities($streamTitle->getStreamImageURL(null, seconds2ntp($mvd->start_time))).'"/>
 251+ <'.$ns.'img src="'.htmlentities($streamTitle->getFullStreamImageURL(null, seconds2ntp($mvd->start_time))).'"/>
252252 <'.$ns.'body><![CDATA[
253253 '. $MV_Overlay->getMVDhtml($mvd, $absolute_links=true).'
254254 ]]></'.$ns.'body>
Index: trunk/extensions/MetavidWiki/includes/MV_Title.php
@@ -195,8 +195,19 @@
196196 return '';
197197 }
198198 }
 199+ function getFullStreamImageURL($size=null, $req_time=null, $foce_server=''){
 200+ global $wgServer,$mvExternalImages;
 201+ //if using external images already:
 202+ if($mvExternalImages){
 203+ return $this->getStreamImageURL($size, $req_time, $foce_server);
 204+ }else{
 205+ global $wgServer;
 206+ return $wgServer.$this->getStreamImageURL($size, $req_time, $foce_server);
 207+ }
 208+ }
 209+ //@@todo force_server is a weird hack ... @@todo remove and update other code locations
199210 function getStreamImageURL($size=null, $req_time=null, $foce_server=''){
200 - global $mvImageArchive, $mvDefaultVideoPlaybackRes;
 211+ global $mvDefaultVideoPlaybackRes;
201212 if($size==null)$size = $mvDefaultVideoPlaybackRes;
202213 if($req_time==null){
203214 $req_time = $this->getStartTime();

Status & tagging log