|
@@ 9593-9595 (lines=3) @@
|
| 9590 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 9591 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 9592 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 9593 |
|
} elseif (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 6) == 'video/') { |
| 9594 |
|
$old_new['dest'] = str_replace('video/', '../../../../video/', $old_new['dest']); |
| 9595 |
|
} |
| 9596 |
|
//Fix to avoid problems with default_course_document |
| 9597 |
|
if (strpos("main/default_course_document", $old_new['dest'] === false)) { |
| 9598 |
|
//$newDestination = str_replace('document/', $mult.'document/', $old_new['dest']); |
|
@@ 9636-9638 (lines=3) @@
|
| 9633 |
|
// will be added in document/main/inc/lib/flv_player/flv_player.swf and that needs |
| 9634 |
|
// to find the flv to play in document/main/, so we replace main/ in the flv path by |
| 9635 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 9636 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 9637 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 9638 |
|
} |
| 9639 |
|
$string = str_replace($old_new['orig'], $old_new['dest'], $string); |
| 9640 |
|
} |
| 9641 |
|
file_put_contents($dest_file, $string); |