|
@@ 2708-2712 (lines=5) @@
|
| 2705 |
|
*/ |
| 2706 |
|
public function replace_urls_inside_content_html_when_moving_file($file_name, $original_path, $destiny_path) |
| 2707 |
|
{ |
| 2708 |
|
if (substr($original_path, strlen($original_path) - 1, strlen($original_path)) == '/') { |
| 2709 |
|
$original = $original_path . $file_name; |
| 2710 |
|
} else { |
| 2711 |
|
$original = $original_path . '/' . $file_name; |
| 2712 |
|
} |
| 2713 |
|
if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
| 2714 |
|
$destination = $destiny_path . $file_name; |
| 2715 |
|
} else { |
|
@@ 2713-2717 (lines=5) @@
|
| 2710 |
|
} else { |
| 2711 |
|
$original = $original_path . '/' . $file_name; |
| 2712 |
|
} |
| 2713 |
|
if (substr($destiny_path, strlen($destiny_path) - 1, strlen($destiny_path)) == '/') { |
| 2714 |
|
$destination = $destiny_path . $file_name; |
| 2715 |
|
} else { |
| 2716 |
|
$destination = $destiny_path . '/' . $file_name; |
| 2717 |
|
} |
| 2718 |
|
$original_count = count(explode('/', $original)); |
| 2719 |
|
$destination_count = count(explode('/', $destination)); |
| 2720 |
|
if ($original_count == $destination_count) { |