ext is sometimes null
This commit is contained in:
parent
07be28580b
commit
a9965ef849
1 changed files with 5 additions and 1 deletions
|
@ -227,7 +227,11 @@ class Video
|
|||
*/
|
||||
public function getFileNameWithExtension($extension)
|
||||
{
|
||||
if (isset($this->ext)) {
|
||||
return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename());
|
||||
} else {
|
||||
return $this->getFilename() . '.' . $extension;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue