diff --git a/source/administrator/components/com_jedchecker/controllers/uploads.php b/source/administrator/components/com_jedchecker/controllers/uploads.php index 37de445..d75c68b 100644 --- a/source/administrator/components/com_jedchecker/controllers/uploads.php +++ b/source/administrator/components/com_jedchecker/controllers/uploads.php @@ -113,7 +113,7 @@ class jedcheckerControllerUploads extends JControllerlegacy foreach ($iterator as $file) { if ($file->isFile()) { - $extension = $file->getExtension(); + $extension = pathinfo($file->getFilename(), PATHINFO_EXTENSION);; if ($extension == 'zip') { $unzip = $file->getPath() . '/' . $file->getBasename('.' . $extension); $result = JArchive::extract($file->getPathname(), $unzip); diff --git a/source/administrator/components/com_jedchecker/script.php b/source/administrator/components/com_jedchecker/script.php index d9c0f69..68833ec 100644 --- a/source/administrator/components/com_jedchecker/script.php +++ b/source/administrator/components/com_jedchecker/script.php @@ -16,7 +16,7 @@ class com_jedcheckerInstallerScript function preflight( $type, $parent ) { $this->parent = $parent; - if (version_compare(PHP_VERSION, '5.3.6', '<')) { + if (version_compare(PHP_VERSION, '5.3.1', '<')) { $this->loadLanguage(); Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.6')); return false;