|
@@ 9609-9611 (lines=3) @@
|
| 9606 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 9607 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 9608 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 9609 |
|
} elseif (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 6) == 'video/') { |
| 9610 |
|
$old_new['dest'] = str_replace('video/', '../../../../video/', $old_new['dest']); |
| 9611 |
|
} |
| 9612 |
|
//Fix to avoid problems with default_course_document |
| 9613 |
|
if (strpos("main/default_course_document", $old_new['dest'] === false)) { |
| 9614 |
|
//$newDestination = str_replace('document/', $mult.'document/', $old_new['dest']); |
|
@@ 9652-9654 (lines=3) @@
|
| 9649 |
|
// will be added in document/main/inc/lib/flv_player/flv_player.swf and that needs |
| 9650 |
|
// to find the flv to play in document/main/, so we replace main/ in the flv path by |
| 9651 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 9652 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 9653 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 9654 |
|
} |
| 9655 |
|
$string = str_replace($old_new['orig'], $old_new['dest'], $string); |
| 9656 |
|
} |
| 9657 |
|
file_put_contents($dest_file, $string); |