Index: branches/REL1_3/phase3/PHPTAL-NP-0.7.0/libs/PHPTAL.php |
— | — | @@ -69,7 +69,8 @@ |
70 | 70 | if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { |
71 | 71 | define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\\"); |
72 | 72 | } else { |
73 | | - define('PHPTAL_DEFAULT_CACHE_DIR', '/tmp/'); |
| 73 | + global $wgUploadDirectory; |
| 74 | + define('PHPTAL_DEFAULT_CACHE_DIR', $wgUploadDirectory.'/'); |
74 | 75 | } |
75 | 76 | |
76 | 77 | /** |