Use the new get_data_file() helper instead of reaching inside the item.
This commit is contained in:
parent
f7bf9b3c89
commit
ea0fd6e1fe
@ -74,8 +74,9 @@ class keeporiginal_event_Core {
|
|||||||
// VARPATH/original/ as well.
|
// VARPATH/original/ as well.
|
||||||
|
|
||||||
if ($old->is_photo() || $old->is_album()) {
|
if ($old->is_photo() || $old->is_album()) {
|
||||||
if (isset($new->data_file)) {
|
$data_file = $new->get_data_file();
|
||||||
self::preserve($old->file_path());
|
if (isset($data_file)) {
|
||||||
|
self::preserve($old->file_path());
|
||||||
}
|
}
|
||||||
if ($old->file_path() != $new->file_path()) {
|
if ($old->file_path() != $new->file_path()) {
|
||||||
$old_original = VARPATH . "original/" . str_replace(VARPATH . "albums/", "", $old->file_path());
|
$old_original = VARPATH . "original/" . str_replace(VARPATH . "albums/", "", $old->file_path());
|
||||||
|
Reference in New Issue
Block a user