Browse Source

default $config[root]

pull/40/head
Savetheinternet 14 years ago
parent
commit
1913795733
  1. 2
      inc/config.php

2
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/';

Loading…
Cancel
Save