use instead of tmp for template caching. could use as well, but that would need...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 17 Jul 2004 20:45:21 +0000 (20:45 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 17 Jul 2004 20:45:21 +0000 (20:45 +0000)
PHPTAL-NP-0.7.0/libs/PHPTAL.php

index ec7b524..69a89a5 100644 (file)
@@ -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.'/');
 }
 
 /**