@@ 2642-2646 (lines=5) @@ | ||
2639 | */ |
|
2640 | function replace_urls_inside_content_html_when_moving_file($file_name, $original_path, $destiny_path) |
|
2641 | { |
|
2642 | if (substr($original_path, strlen($original_path) - 1, strlen($original_path)) == '/') { |
|
2643 | $original = $original_path . $file_name; |
|
2644 | } else { |
|
2645 | $original = $original_path . '/' . $file_name; |
|
2646 | } |
|
2647 | if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
|
2648 | $destination = $destiny_path . $file_name; |
|
2649 | } else { |
|
@@ 2647-2651 (lines=5) @@ | ||
2644 | } else { |
|
2645 | $original = $original_path . '/' . $file_name; |
|
2646 | } |
|
2647 | if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
|
2648 | $destination = $destiny_path . $file_name; |
|
2649 | } else { |
|
2650 | $destination = $destiny_path . '/' . $file_name; |
|
2651 | } |
|
2652 | $original_count = count(explode('/', $original)); |
|
2653 | $destination_count = count(explode('/', $destination)); |
|
2654 | if ($original_count == $destination_count) { |