Fixed bug causing templates to fail after a chdir()
This commit is contained in:
@@ -85,7 +85,9 @@
|
||||
define('DIR_IMG', 'src/', true);
|
||||
define('DIR_THUMB', 'thumb/', true);
|
||||
define('DIR_RES', 'res/', true);
|
||||
|
||||
|
||||
define('DIR_TEMPLATE', getcwd() . '/templates', true);
|
||||
|
||||
// The root directory, including the trailing slash, for Tinyboard.
|
||||
// examples: '/', 'http://boards.chan.org/', '/chan/'
|
||||
define('ROOT', '/', true);
|
||||
|
@@ -8,7 +8,7 @@
|
||||
// Standard configuration
|
||||
//
|
||||
// Folder where the template files are kept
|
||||
$templateDir = './templates';
|
||||
$templateDir = DIR_TEMPLATE;
|
||||
//
|
||||
// Enable global things like %gentime, etc.
|
||||
$templateGlobals = true;
|
||||
|
Reference in New Issue
Block a user