Fix rebase issue

This commit is contained in:
ArthurHoaro 2020-10-27 19:55:29 +01:00
parent 36e6d88dbf
commit 54afb1d6f6
3 changed files with 4 additions and 3 deletions

View file

@ -4,8 +4,8 @@ declare(strict_types=1);
namespace Shaarli\Front\Controller\Admin;
use Shaarli\ApplicationUtils;
use Shaarli\FileUtils;
use Shaarli\Helper\ApplicationUtils;
use Shaarli\Helper\FileUtils;
use Slim\Http\Request;
use Slim\Http\Response;

View file

@ -133,7 +133,7 @@ class FileUtils
*/
public static function isPathInShaarliFolder(string $path): bool
{
$rootDirectory = dirname(dirname(__FILE__));
$rootDirectory = dirname(dirname(dirname(__FILE__)));
return strpos(realpath($path), $rootDirectory) !== false;
}

View file

@ -4,6 +4,7 @@ namespace Shaarli\Helper;
use Exception;
use Shaarli\Exceptions\IOException;
use Shaarli\TestCase;
/**
* Class FileUtilsTest