fixes of windows DIRECTORY_SEPARATOR

This commit is contained in:
Abdulrahman
2019-07-09 23:40:28 +03:00
parent 164419023f
commit 16dab0e04a
3 changed files with 4 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ if (@extension_loaded('apc'))
//path
if (! defined('PATH'))
{
define('PATH', str_replace('/includes', '', __DIR__) . '/');
define('PATH', str_replace(DIRECTORY_SEPARATOR . 'includes', '', __DIR__) . '/');
}
//no config

View File

@@ -66,6 +66,8 @@ class kleeja_style
$is_admin_template = false;
$style_path = str_replace(DIRECTORY_SEPARATOR, '/', $style_path);
//admin template always begin with admin_
if (substr($template_name, 0, 6) == 'admin_')
{

View File

@@ -267,6 +267,6 @@ function get_cookies_settings()
'cookie_secure' => $cookie_secure,
'cookie_name' => $cookie_name,
'cookie_domain' => $cookie_domain,
'cookie_path' => str_replace('/install', '', $script_path),
'cookie_path' => str_replace(DIRECTORY_SEPARATOR . 'install', '', $script_path),
];
}