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_')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user