@ -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');