// fix installer
This commit is contained in:
1 parent
a67b42a060
commit
2bb7e33a01
4 files changed
+7
-8
No files matched your search
@@ -161,8 +161,7 @@ class ConfigurationTestCore
|
||||
|
||||
public static function test_dir($relative_dir, $recursive = false)
|
||||
{
|
||||
$root_dir = dirname(dirname(__FILE__)); // @TODO FIXME
|
||||
$dir = $root_dir.DIRECTORY_SEPARATOR.ltrim($relative_dir, '/');
|
||||
$dir = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.ltrim($relative_dir, '/');
|
||||
if (!file_exists($dir) OR !$dh = opendir($dir))
|
||||
return false;
|
||||
$dummy = rtrim($dir, '/').'/'.uniqid();
|
||||
@@ -187,8 +186,7 @@ class ConfigurationTestCore
|
||||
|
||||
public static function test_file($file_relative)
|
||||
{
|
||||
$root_dir = dirname(dirname(__FILE__)); // @TODO FIXME
|
||||
$file = $root_dir.DIRECTORY_SEPARATOR.$file_relative;
|
||||
$file = _PS_ROOT_DIR_.DIRECTORY_SEPARATOR.$file_relative;
|
||||
return (file_exists($file) AND is_writable($file));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user