diff --git a/app/Models/Abstracted/Catalog.php b/app/Models/Abstracted/Catalog.php index 3eefb30..e8040f5 100644 --- a/app/Models/Abstracted/Catalog.php +++ b/app/Models/Abstracted/Catalog.php @@ -201,13 +201,13 @@ abstract class Catalog extends Model switch ($type) { - case 'a': $t = fileatime($this->filename); + case 'a': $t = fileatime($this->file_path()); break; - case 'c': $t = filectime($this->filename); + case 'c': $t = filectime($this->file_path()); break; - case 'm': $t = filemtime($this->filename); + case 'm': $t = filemtime($this->file_path()); break; } @@ -489,7 +489,7 @@ abstract class Catalog extends Model { $this->signature = $this->property('signature'); - $this->file_signature = md5_file($this->filename); + $this->file_signature = md5_file($this->file_path()); } /**