31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-10 17:22:21 +00:00

[4.0] Fix applying patches failing on Linux hosts (#242)

[4.0] Fix applying patches failing on Linux hosts
This commit is contained in:
Hannes Papenberg 2019-10-24 13:55:22 +02:00 committed by GitHub
commit a2b354af09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,9 +269,9 @@ class PullModel extends AbstractModel
{
try
{
$filePath = explode("\\", Path::clean($file));
$filePath = explode(DIRECTORY_SEPARATOR, Path::clean($file));
array_pop($filePath);
$filePath = implode("\\", $filePath);
$filePath = implode(DIRECTORY_SEPARATOR, $filePath);
// Deleted_logs returns files as well as folder, if value is folder, unset and skip
if (is_dir(JPATH_ROOT . "/$file"))