Fix silly typo causing syntax error

This commit is contained in:
Richard Fath 2020-03-21 16:34:25 +01:00
parent 10f3e5766c
commit 98b69ee49c
1 changed files with 4 additions and 4 deletions

View File

@ -338,7 +338,7 @@ class PullModel extends AbstractModel
$this->appendPatchChain($lastInserted, $id);
// On Joomla 4 or later, remove the autoloader file
if (version_compare(JVERSION, '4', 'ge' && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
if (version_compare(JVERSION, '4', 'ge') && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
{
File::delete(JPATH_LIBRARIES . '/autoload_psr4.php');
}
@ -513,7 +513,7 @@ class PullModel extends AbstractModel
$this->saveAppliedPatch($pull->number, $parsedFiles, $pull->head->sha);
// On Joomla 4 or later, remove the autoloader file
if (version_compare(JVERSION, '4', 'ge' && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
if (version_compare(JVERSION, '4', 'ge') && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
{
File::delete(JPATH_LIBRARIES . '/autoload_psr4.php');
}
@ -726,7 +726,7 @@ class PullModel extends AbstractModel
Folder::delete($backupsPath);
// On Joomla 4 or later, remove the autoloader file
if (version_compare(JVERSION, '4', 'ge' && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
if (version_compare(JVERSION, '4', 'ge') && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
{
File::delete(JPATH_LIBRARIES . '/autoload_psr4.php');
}
@ -841,7 +841,7 @@ class PullModel extends AbstractModel
}
// On Joomla 4 or later, remove the autoloader file
if (version_compare(JVERSION, '4', 'ge' && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
if (version_compare(JVERSION, '4', 'ge') && file_exists(JPATH_LIBRARIES . '/autoload_psr4.php'))
{
File::delete(JPATH_LIBRARIES . '/autoload_psr4.php');
}