@@ 2668-2672 (lines=5) @@ | ||
2665 | */ |
|
2666 | function replace_urls_inside_content_html_when_moving_file($file_name, $original_path, $destiny_path) |
|
2667 | { |
|
2668 | if (substr($original_path, strlen($original_path) - 1, strlen($original_path)) == '/') { |
|
2669 | $original = $original_path . $file_name; |
|
2670 | } else { |
|
2671 | $original = $original_path . '/' . $file_name; |
|
2672 | } |
|
2673 | if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
|
2674 | $destination = $destiny_path . $file_name; |
|
2675 | } else { |
|
@@ 2673-2677 (lines=5) @@ | ||
2670 | } else { |
|
2671 | $original = $original_path . '/' . $file_name; |
|
2672 | } |
|
2673 | if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
|
2674 | $destination = $destiny_path . $file_name; |
|
2675 | } else { |
|
2676 | $destination = $destiny_path . '/' . $file_name; |
|
2677 | } |
|
2678 | $original_count = count(explode('/', $original)); |
|
2679 | $destination_count = count(explode('/', $destination)); |
|
2680 | if ($original_count == $destination_count) { |