on Windows, you can't use a hard-coded directory. Getting temp directory from the...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 4 May 2004 14:38:21 +0000 (14:38 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 4 May 2004 14:38:21 +0000 (14:38 +0000)
PHPTAL-NP-0.7.0/libs/PHPTAL.php

index 2df81c6..1a785e2 100644 (file)
@@ -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/');
 }