From: Gabriel Wicke Date: Sat, 17 Jul 2004 20:45:21 +0000 (+0000) Subject: use instead of tmp for template caching. could use as well, but that would need... X-Git-Tag: 1.5.0alpha1~2655 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=69c9cfe6d58494bf1bd14edbc6817d39aacdd6f0;p=lhc%2Fweb%2Fwiklou.git use instead of tmp for template caching. could use as well, but that would need to be created in many cases --- 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.'/'); } /**