33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2025-01-11 09:35:14 +00:00

Merge pull request #36 from compojoom/pr/32

Pr/32
This commit is contained in:
Jaz Parkyn 2016-10-03 23:22:51 +01:00 committed by GitHub
commit 9cf76ae00d
3 changed files with 3 additions and 5 deletions

View File

@ -77,7 +77,7 @@ class JedcheckerControllerUploads extends JControllerLegacy
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))
{
// Error in upload
JError::raiseWarning(100, JText::_('COM_JEDCHECKER_ERROR_UNABLE_TO_UPLOAD_FILE'));
JFactory::getApplication()->enqueueMessage(JText::_('COM_JEDCHECKER_ERROR_UNABLE_TO_UPLOAD_FILE'), 'error');
return false;
}

View File

@ -2,6 +2,7 @@
COM_JEDCHECKER_CONFIGURATION="JED Checker Configuration"
COM_JEDCHECKER_UPLOAD_FILE="Upload File"
COM_JEDCHECKER_UPLOAD_WAS_SUCCESSFUL="Upload was successful, next click the Unzip button."
COM_JEDCHECKER_ERROR_UNABLE_TO_UPLOAD_FILE="Upload has failed, ensure that the temporary directory is writable."
COM_JEDCHECKER_UNZIP_SUCCESS="Unzip was successful, next click the Check button."
COM_JEDCHECKER_UNZIP_FAILED="Unzip failed"
COM_JEDCHECKER_RESULTS="JED Checker Results"

View File

@ -23,8 +23,6 @@ class Com_JedcheckerInstallerScript
*
* @param string $type - the installation type
* @param JInstallerComponent $parent - the parent class
*
* @return bool
*/
public function preflight($type, $parent)
{
@ -33,12 +31,11 @@ class Com_JedcheckerInstallerScript
if (version_compare(PHP_VERSION, '5.3.10', '<'))
{
$this->loadLanguage();
Jerror::raiseWarning(null, JText::sprintf('COM_JEDCHECKER_PHP_VERSION_INCOMPATIBLE', PHP_VERSION, '5.3.10'));
return false;
}
return true;
}
/**