diff --git a/classes/Video.php b/classes/Video.php index ed61867..df6aced 100644 --- a/classes/Video.php +++ b/classes/Video.php @@ -227,7 +227,11 @@ class Video */ public function getFileNameWithExtension($extension) { - return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename()); + if (isset($this->ext)) { + return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename()); + } else { + return $this->getFilename() . '.' . $extension; + } } /**