|
@@ 10433-10435 (lines=3) @@
|
| 10430 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 10431 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 10432 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 10433 |
|
} elseif (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 6) == 'video/') { |
| 10434 |
|
$old_new['dest'] = str_replace('video/', '../../../../video/', $old_new['dest']); |
| 10435 |
|
} |
| 10436 |
|
//Fix to avoid problems with default_course_document |
| 10437 |
|
if (strpos("main/default_course_document", $old_new['dest'] === false)) { |
| 10438 |
|
//$newDestination = str_replace('document/', $mult.'document/', $old_new['dest']); |
|
@@ 10501-10503 (lines=3) @@
|
| 10498 |
|
// will be added in document/main/inc/lib/flv_player/flv_player.swf and that needs |
| 10499 |
|
// to find the flv to play in document/main/, so we replace main/ in the flv path by |
| 10500 |
|
// ../../.. to return from inc/lib/flv_player to the document/main path. |
| 10501 |
|
if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
| 10502 |
|
$old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
| 10503 |
|
} |
| 10504 |
|
$string = str_replace($old_new['orig'], $old_new['dest'], $string); |
| 10505 |
|
} |
| 10506 |
|
file_put_contents($dest_file, $string); |