Update a deprecated method and poor preg syntax so that the Keep Original module will work.
This commit is contained in:
parent
04320ee616
commit
c3434fc10c
|
@ -26,7 +26,7 @@ class keeporiginal_event_Core {
|
||||||
// Figure out where the original copy should be stashed at.
|
// Figure out where the original copy should be stashed at.
|
||||||
$temp_path = str_replace(VARPATH . "albums/", "", $input_file);
|
$temp_path = str_replace(VARPATH . "albums/", "", $input_file);
|
||||||
$original_image = VARPATH . "original/" . $temp_path;
|
$original_image = VARPATH . "original/" . $temp_path;
|
||||||
$individual_dirs = split("[/\]", "original/" . $temp_path);
|
$individual_dirs = preg_split("|[/\\\\]|", "original/" . $temp_path);
|
||||||
// If any original file does not already exist, then create a folder structure
|
// If any original file does not already exist, then create a folder structure
|
||||||
// similar to that found in VARPATH/albums/ and copy the photo over before
|
// similar to that found in VARPATH/albums/ and copy the photo over before
|
||||||
// rotating it.
|
// rotating it.
|
||||||
|
|
Reference in New Issue
Block a user