Added photo:update to update signatures
This commit is contained in:
@@ -34,7 +34,7 @@ class PhotoDelete extends Job implements ShouldQueue
|
||||
{
|
||||
if (! $this->photo->remove)
|
||||
{
|
||||
Log::warning(__METHOD__.' NOT Deleting: '.$this->photo->file_path().', not marked for deletion');
|
||||
Log::warning(sprintf('%s: NOT Deleting [%s] not marked for deletion',__METHOD__,$this->photo->file_path()));
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -46,13 +46,13 @@ class PhotoDelete extends Job implements ShouldQueue
|
||||
|
||||
// Make sure our parent is writable
|
||||
if (! is_writable(dirname($this->photo->file_path())))
|
||||
Log::warning(__METHOD__.' NOT Deleting: '.$this->photo->file_path().', parent directory not writable');
|
||||
Log::warning(sprintf('%s: NOT Deleting [%s] parent directory not writable',__METHOD__,$this->photo->file_path()));
|
||||
|
||||
// Perform delete
|
||||
if (file_exists($this->photo->file_path()))
|
||||
unlink($this->photo->file_path());
|
||||
|
||||
Log::info(sprintf('%s: Deleted (%s): %s',__METHOD__,$this->photo->id,$this->photo->file_path()));
|
||||
Log::warning(sprintf('%s: Deleted [%s]',__METHOD__,$this->photo->file_path()));
|
||||
$this->photo->delete();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user