From: Tim Starling Date: Tue, 4 May 2004 14:38:21 +0000 (+0000) Subject: on Windows, you can't use a hard-coded directory. Getting temp directory from the... X-Git-Tag: 1.3.0beta1~151 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=d354f6a655b3a7827623cc7ee332c5c8fe8845c9;p=lhc%2Fweb%2Fwiklou.git on Windows, you can't use a hard-coded directory. Getting temp directory from the environment instead --- diff --git a/PHPTAL-NP-0.7.0/libs/PHPTAL.php b/PHPTAL-NP-0.7.0/libs/PHPTAL.php index 2df81c6adb..1a785e2781 100644 --- a/PHPTAL-NP-0.7.0/libs/PHPTAL.php +++ b/PHPTAL-NP-0.7.0/libs/PHPTAL.php @@ -66,7 +66,7 @@ define('PHPTAL_VERSION', '0.7.0'); define('PHPTAL_MARK', str_replace('.', '_', PHPTAL_VERSION) . '_'); if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { - define('PHPTAL_DEFAULT_CACHE_DIR', 'c:\temp\\'); + define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\\"); } else { define('PHPTAL_DEFAULT_CACHE_DIR', '/tmp/'); }