33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-30 16:53:59 +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:
eddieajau 2013-01-01 20:44:05 +10:00
parent 392c710a4b
commit e148a221c4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;