summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 19:21:06 +1100
committerPaul Merrill <napalminc@gmail.com>2010-12-01 04:14:16 -0800
commit95b91b3b5fd13a0ba1b0c0d1ff4dd27703076941 (patch)
tree36e96f1b5e788734059d5a822132e48a8055d4cb /inc
parent5ffa408b4bbd9cee5c855097bfe0b95ed76b8507 (diff)
Fixed bug causing templates to fail after a chdir()
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php4
-rw-r--r--inc/template.php2
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;