From 0b6b3021fd6ec1aebc3bb7ad80b241d143639129 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 5 Jan 2020 10:53:54 +1100 Subject: [PATCH] Revert some file_path() calls --- app/Models/Abstracted/Catalog.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()); } /**