33
2
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:
Daniel Dimitrov 2013-01-07 00:19:00 -08:00
commit c09fe92538
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -4,3 +4,6 @@
/builds/build.properties /builds/build.properties
/source/administrator/components/com_jedchecker/tmp /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) { foreach ($iterator as $file) {
if ($file->isFile()) { if ($file->isFile()) {
$extension = $file->getExtension(); $extension = pathinfo($file->getFilename(), PATHINFO_EXTENSION);;
if ($extension == 'zip') { if ($extension == 'zip') {
$unzip = $file->getPath() . '/' . $file->getBasename('.' . $extension); $unzip = $file->getPath() . '/' . $file->getBasename('.' . $extension);
$result = JArchive::extract($file->getPathname(), $unzip); $result = JArchive::extract($file->getPathname(), $unzip);

View File

@ -16,7 +16,7 @@ class com_jedcheckerInstallerScript
function preflight( $type, $parent ) { function preflight( $type, $parent ) {
$this->parent = $parent; $this->parent = $parent;
if (version_compare(PHP_VERSION, '5.3.6', '<')) { if (version_compare(PHP_VERSION, '5.3.1', '<')) {
$this->loadLanguage(); $this->loadLanguage();
Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.6')); Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.6'));
return false; return false;