Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes to combiner

  • Loading branch information...
commit 23779a31979575d9f97ef83f896e6ed4ebde000b 1 parent 69ddffe
@kaviththiranga authored
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)
{
Please sign in to comment.
Something went wrong with that request. Please try again.