mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-27 15:26:36 +00:00
Lower PHP minimum version
Removes the SplFileInfo::getExtension call in favour of a method that can use a lesser version of PHP. Changed the preflight PHP version check to 5.3.1 (same minimum as the Joomla Platform).
This commit is contained in:
parent
392c710a4b
commit
e148a221c4
@ -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