Permalink
Browse files

Fixes to combiner

  • Loading branch information...
1 parent 69ddffe commit 23779a31979575d9f97ef83f896e6ed4ebde000b @kaviththiranga committed Jul 29, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 libraries/joomla/media/combiner.php
View
5 libraries/joomla/media/combiner.php
@@ -193,6 +193,11 @@ public static function combineFiles($files, $options = array(), $destination = n
// Detect file type
$type = JFile::getExt($files[0]);
+ if (!self::isSupported($files[0]))
+ {
+ throw new RuntimeException(JText::sprintf('JMEDIA_ERROR_FILE_TYPE_NOT_SUPPORTED'));
+ }
+
// Checks for the destination
if ($destination === null)
{

0 comments on commit 23779a3

Please sign in to comment.