31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-11 09:42:21 +00:00

Update PullModel.php

This commit is contained in:
Richard Fath 2019-10-19 15:47:43 +02:00 committed by GitHub
parent 0a1792da58
commit 63d9019052
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"))