mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-11 09:35:14 +00:00
commit
9cf76ae00d
@ -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;
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user