diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:21:06 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 19:21:06 +1100 |
| commit | 4dc13a3a92f711900a61335256f97f465a5067dd (patch) | |
| tree | 4107fa38a1f18dff37c6d8bf8395c6fbfaac5e24 /inc | |
| parent | 6f5966e38031557ca8b37905b594ed6541cb8a65 (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;
|
