r29933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29932‎ | r29933 | r29934 >
Date:20:37, 18 January 2008
Author:dale
Status:old
Tags:
Comment:
fixed "add new transcript" bug
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php (modified) (history)
  • /trunk/extensions/MetavidWiki/includes/MV_StreamFile.php (modified) (history)
  • /trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.php
@@ -231,7 +231,7 @@
232232 break;
233233 default :
234234 do_stream_insert('stream', $args[0]);
235 - break;
 235+ break;
236236 }
237237 function upTempalte_Ht_en($force = false) {
238238 $wgTemplateTitle = Title :: makeTitle(NS_TEMPLATE, 'Ht_en');
Index: trunk/extensions/MetavidWiki/includes/MV_StreamFile.php
@@ -98,8 +98,8 @@
9999 global $mvLocalVideoLoc,$mvDefaultVideoQualityId;
100100 if($quality==null)$quality=$mvDefaultVideoQualityId;
101101
102 - if(!is_dir($mvLocalVideoLoc))return null;
103 - if(!is_file($mvLocalVideoLoc . $this->_parent_stream->getStreamName() ))return null;
 102+ if(!is_dir($mvLocalVideoLoc))return null;
 103+ if(!@is_file($mvLocalVideoLoc . $this->_parent_stream->getStreamName() ))return null;
104104 //all looks good return:
105105 return $mvLocalVideoLoc . $this->_parent_stream->getStreamName();
106106 }
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php
@@ -551,7 +551,7 @@
552552
553553 //get updated mvd_id:
554554 $dbr =& wfGetDB(DB_SLAVE);
555 - $result = & MV_Index::getMVDbyTitle($titleKey, 'id');
 555+ $result = & MV_Index::getMVDbyTitle($titleKey, 'mv_page_id');
556556 $mvd_id = $result->id;
557557
558558 //return $this->get_fd_mvd_request($titleKey, $mvd_id, 'enclosed');

Status & tagging log