Determine current filename
This commit is contained in:
@@ -251,6 +251,16 @@ abstract class Catalog extends Model
|
||||
return (($short OR preg_match('/^\//',$file)) ? '' : config($this->type.'.dir').DIRECTORY_SEPARATOR).$file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the current filename
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function file_name_current(bool $short=TRUE): string
|
||||
{
|
||||
return (($short OR preg_match('/^\//',$this->filename)) ? '' : config($this->type.'.dir').DIRECTORY_SEPARATOR).$this->filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the new name for the image
|
||||
* @deprecated use $this->file_name()
|
||||
|
Reference in New Issue
Block a user