diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 15:48:32 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 15:48:32 +1100 |
| commit | 191379573382a5da191f147d2da8c2f56363ed5e (patch) | |
| tree | 49e0974a7765c605ba639394f2ee78cbaf87be83 /inc/config.php | |
| parent | afbd0c6473f864736bacab28035dfd3702c5d231 (diff) | |
default $config[root]
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 4fe7a988..c60ecace 100644 --- a/inc/config.php +++ b/inc/config.php @@ -149,7 +149,7 @@ // The root directory, including the trailing slash, for Tinyboard. // examples: '/', 'http://boards.chan.org/', '/chan/' - $config['root'] = '/'; + $config['root'] = ($_SERVER['REQUEST_URI'] == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/'); $config['dir']['img'] = 'src/'; $config['dir']['thumb'] = 'thumb/'; |
