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