mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes of windows DIRECTORY_SEPARATOR
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_')
|
||||
{
|
||||
|
||||
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user