[svn r15542] Fix other flv issue in SCORM export - see FS#2526

skala
Yannick Warnier 17 years ago
parent 782f217232
commit 77e08535db
  1. 4
      main/newscorm/learnpath.class.php
  2. 2
      main/newscorm/learnpathItem.class.php

@ -8175,6 +8175,10 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
if(substr($old_new['dest'],-3)=='flv' && substr($old_new['dest'],0,5)=='main/')
{
$old_new['dest'] = str_replace('main/','../../../',$old_new['dest']);
}
elseif(substr($old_new['dest'],-3)=='flv' && substr($old_new['dest'],0,6)=='video/')
{
$old_new['dest'] = str_replace('video/','../../../../video/',$old_new['dest']);
}
$string = str_replace($old_new['orig'],$old_new['dest'],$string);
}

@ -638,7 +638,7 @@ class learnpathItem{
{
$files_list[] = array(substr($source, 0, strpos($source , '.swf')+4),'local','abs');
$mp3file = substr($source , strpos($source , 'mp3file=')+8);
if(strpos($mp3file,0,1) == '/')
if(substr($mp3file,0,1) == '/')
$files_list[] = array($mp3file,'local','abs');
else
$files_list[] = array($mp3file,'local','rel');

Loading…
Cancel
Save