@@ 9601-9603 (lines=3) @@ | ||
9598 | // ../../.. to return from inc/lib/flv_player to the document/main path. |
|
9599 | if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
|
9600 | $old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
|
9601 | } elseif (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 6) == 'video/') { |
|
9602 | $old_new['dest'] = str_replace('video/', '../../../../video/', $old_new['dest']); |
|
9603 | } |
|
9604 | //Fix to avoid problems with default_course_document |
|
9605 | if (strpos("main/default_course_document", $old_new['dest'] === false)) { |
|
9606 | //$newDestination = str_replace('document/', $mult.'document/', $old_new['dest']); |
|
@@ 9644-9646 (lines=3) @@ | ||
9641 | // will be added in document/main/inc/lib/flv_player/flv_player.swf and that needs |
|
9642 | // to find the flv to play in document/main/, so we replace main/ in the flv path by |
|
9643 | // ../../.. to return from inc/lib/flv_player to the document/main path. |
|
9644 | if (substr($old_new['dest'], -3) == 'flv' && substr($old_new['dest'], 0, 5) == 'main/') { |
|
9645 | $old_new['dest'] = str_replace('main/', '../../../', $old_new['dest']); |
|
9646 | } |
|
9647 | $string = str_replace($old_new['orig'], $old_new['dest'], $string); |
|
9648 | } |
|
9649 | file_put_contents($dest_file, $string); |