[svn r16635] fix a bug when editing a document with audioplayer

skala
Eric Marguin 17 years ago
parent dcf1cb562b
commit 782350bddd
  1. 4
      main/document/create_document.php
  2. 4
      main/document/edit_document.php
  3. 4
      main/newscorm/learnpath.class.php

@ -1,5 +1,5 @@
<?php
// $Id: create_document.php 16628 2008-10-27 16:01:12Z elixir_inter $
// $Id: create_document.php 16635 2008-10-28 10:12:46Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -400,7 +400,7 @@ if ($form->validate())
// change the path of mp3 to absolute
$content = preg_replace("|(flashvars=\"file=)([\./]*)|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
$content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
fputs($fp, $content);

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 16555 2008-10-17 10:29:14Z elixir_inter $
<?php // $Id: edit_document.php 16635 2008-10-28 10:12:46Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -413,7 +413,7 @@ if($is_allowedToEdit)
$texte = str_replace('flv=/','flv=/|',$texte);
// change the path of mp3 to absolute
$texte = preg_replace("|(flashvars=\"file=)([\./]*)|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$texte);
$texte = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$texte);
fputs($fp,$texte);

@ -4483,7 +4483,7 @@ class learnpath {
$content = str_replace(api_get_path('WEB_COURSE_PATH'), api_get_path(REL_PATH).'courses/', $content);
// change the path of mp3 to absolute
$content = preg_replace("|(flashvars=\"file=)([\./]*)|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
$content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
@ -4588,7 +4588,7 @@ class learnpath {
$content = str_replace(api_get_path('WEB_COURSE_PATH'), $_configuration['url_append'].'/courses/', $content);
// change the path of mp3 to absolute
$content = preg_replace("|(flashvars=\"file=)([\./]*)|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
$content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content);
fputs($fp, $content);
fclose($fp);

Loading…
Cancel
Save