diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:21:06 +1100 |
|---|---|---|
| committer | Paul Merrill <napalminc@gmail.com> | 2010-12-01 04:14:16 -0800 |
| commit | 95b91b3b5fd13a0ba1b0c0d1ff4dd27703076941 (patch) | |
| tree | 36e96f1b5e788734059d5a822132e48a8055d4cb /inc | |
| parent | 5ffa408b4bbd9cee5c855097bfe0b95ed76b8507 (diff) | |
Fixed bug causing templates to fail after a chdir()
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 4 | ||||
| -rw-r--r-- | inc/template.php | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/config.php b/inc/config.php index 83af50f8..dbb9bbd6 100644 --- a/inc/config.php +++ b/inc/config.php @@ -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); diff --git a/inc/template.php b/inc/template.php index 95fa2ff7..ff65c0c3 100644 --- a/inc/template.php +++ b/inc/template.php @@ -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;
|
