33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-23 21:27:35 +00:00

Merge pull request #11 from eddieajau/master

Lower minimum PHP version.
This commit is contained in:
Daniel Dimitrov 2013-01-07 00:19:00 -08:00
commit c09fe92538
3 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View File

@ -3,4 +3,7 @@
/.idea
/builds/build.properties
/source/administrator/components/com_jedchecker/tmp
/tx.exe
/tx.exe
/.settings
/.buildpath
/.project

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;