@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * content directory |
70 | 70 | */ |
71 | -$config['content_dir'] = ROOT_DIR . 'content' . DS; |
|
71 | +$config['content_dir'] = ROOT_DIR.'content'.DS; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * extension of content files |
@@ -14,23 +14,23 @@ |
||
14 | 14 | defined('PHILE_VERSION') || define('PHILE_VERSION', '1.8.0'); |
15 | 15 | defined('PHILE_CLI_MODE') || define('PHILE_CLI_MODE', (php_sapi_name() === 'cli')); |
16 | 16 | defined('DS') || define('DS', DIRECTORY_SEPARATOR); |
17 | -defined('ROOT_DIR') || define('ROOT_DIR', realpath(__DIR__ . DS . '..' . DS . '..' . DS) . DS); |
|
18 | -defined('LIB_DIR') || define('LIB_DIR', ROOT_DIR . 'lib' . DS); |
|
19 | -defined('PLUGINS_DIR') || define('PLUGINS_DIR', ROOT_DIR . 'plugins' . DS); |
|
20 | -defined('THEMES_DIR') || define('THEMES_DIR', ROOT_DIR . 'themes' . DS); |
|
21 | -defined('CACHE_DIR') || define('CACHE_DIR', LIB_DIR . 'cache' . DS); |
|
22 | -defined('STORAGE_DIR') || define('STORAGE_DIR', LIB_DIR . 'datastorage' . DS); |
|
17 | +defined('ROOT_DIR') || define('ROOT_DIR', realpath(__DIR__.DS.'..'.DS.'..'.DS).DS); |
|
18 | +defined('LIB_DIR') || define('LIB_DIR', ROOT_DIR.'lib'.DS); |
|
19 | +defined('PLUGINS_DIR') || define('PLUGINS_DIR', ROOT_DIR.'plugins'.DS); |
|
20 | +defined('THEMES_DIR') || define('THEMES_DIR', ROOT_DIR.'themes'.DS); |
|
21 | +defined('CACHE_DIR') || define('CACHE_DIR', LIB_DIR.'cache'.DS); |
|
22 | +defined('STORAGE_DIR') || define('STORAGE_DIR', LIB_DIR.'datastorage'.DS); |
|
23 | 23 | // phpcs:enable |
24 | 24 | |
25 | 25 | /** |
26 | 26 | * initialize the autoloader |
27 | 27 | */ |
28 | 28 | // load from phile core |
29 | -spl_autoload_register(function ($className) { |
|
30 | - $fileName = LIB_DIR . str_replace("\\", DS, $className) . '.php'; |
|
29 | +spl_autoload_register(function($className) { |
|
30 | + $fileName = LIB_DIR.str_replace("\\", DS, $className).'.php'; |
|
31 | 31 | if (file_exists($fileName)) { |
32 | 32 | require_once $fileName; |
33 | 33 | } |
34 | 34 | }); |
35 | 35 | // load from composer |
36 | -require(LIB_DIR . 'vendor' . DS . 'autoload.php'); |
|
36 | +require(LIB_DIR.'vendor'.DS.'autoload.php'); |
@@ -75,8 +75,8 @@ |
||
75 | 75 | { |
76 | 76 | $this->config = []; |
77 | 77 | $files = [ |
78 | - 'default' => ROOT_DIR . 'default_config.php', |
|
79 | - 'local' => ROOT_DIR . 'config.php' |
|
78 | + 'default' => ROOT_DIR.'default_config.php', |
|
79 | + 'local' => ROOT_DIR.'config.php' |
|
80 | 80 | ]; |
81 | 81 | foreach ($files as $file) { |
82 | 82 | $cfg = include $file; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @package Phile |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__ . '/lib/Phile/bootstrap.php'; |
|
9 | +require_once __DIR__.'/lib/Phile/bootstrap.php'; |
|
10 | 10 | |
11 | 11 | ob_start(); |
12 | 12 |