1
0

Update a deprecated method and poor preg syntax so that the Keep Original module will work.

This commit is contained in:
Chad Parry 2011-04-23 22:52:43 -06:00
parent 04320ee616
commit c3434fc10c

View File

@ -26,7 +26,7 @@ class keeporiginal_event_Core {
// Figure out where the original copy should be stashed at.
$temp_path = str_replace(VARPATH . "albums/", "", $input_file);
$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
// similar to that found in VARPATH/albums/ and copy the photo over before
// rotating it.