1
0

Use the new get_data_file() helper instead of reaching inside the item.

This commit is contained in:
Chad Parry 2011-04-24 08:10:22 -06:00
parent f7bf9b3c89
commit ea0fd6e1fe

View File

@ -74,8 +74,9 @@ class keeporiginal_event_Core {
// VARPATH/original/ as well.
if ($old->is_photo() || $old->is_album()) {
if (isset($new->data_file)) {
self::preserve($old->file_path());
$data_file = $new->get_data_file();
if (isset($data_file)) {
self::preserve($old->file_path());
}
if ($old->file_path() != $new->file_path()) {
$old_original = VARPATH . "original/" . str_replace(VARPATH . "albums/", "", $old->file_path());