mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-24 05:37:38 +00:00
Merge pull request #11 from eddieajau/master
Lower minimum PHP version.
This commit is contained in:
commit
c09fe92538
5
.gitignore
vendored
5
.gitignore
vendored
@ -3,4 +3,7 @@
|
||||
/.idea
|
||||
/builds/build.properties
|
||||
/source/administrator/components/com_jedchecker/tmp
|
||||
/tx.exe
|
||||
/tx.exe
|
||||
/.settings
|
||||
/.buildpath
|
||||
/.project
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user