From 69c9cfe6d58494bf1bd14edbc6817d39aacdd6f0 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sat, 17 Jul 2004 20:45:21 +0000 Subject: [PATCH] use instead of tmp for template caching. could use as well, but that would need to be created in many cases --- PHPTAL-NP-0.7.0/libs/PHPTAL.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PHPTAL-NP-0.7.0/libs/PHPTAL.php b/PHPTAL-NP-0.7.0/libs/PHPTAL.php index ec7b524c34..69a89a5e16 100644 --- a/PHPTAL-NP-0.7.0/libs/PHPTAL.php +++ b/PHPTAL-NP-0.7.0/libs/PHPTAL.php @@ -69,7 +69,8 @@ define('PHPTAL_MARK', str_replace('.', '_', PHPTAL_VERSION) . '_'); if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\\"); } else { - define('PHPTAL_DEFAULT_CACHE_DIR', '/tmp/'); + global $wgUploadDirectory; + define('PHPTAL_DEFAULT_CACHE_DIR', $wgUploadDirectory.'/'); } /** -- 2.20.1