diff --git a/.gitignore b/.gitignore index 5f31a70..5227e17 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,7 @@ /.idea /builds/build.properties /source/administrator/components/com_jedchecker/tmp -/tx.exe \ No newline at end of file +/tx.exe +/.settings +/.buildpath +/.project 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;