r4311 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4310‎ | r4311 | r4312 >
Date:20:45, 17 July 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
use instead of tmp for template caching. could use as well, but that would need to be created in many cases
Modified paths:
  • /trunk/phase3/PHPTAL-NP-0.7.0/libs/PHPTAL.php (modified) (history)

Diff [purge]

Index: trunk/phase3/PHPTAL-NP-0.7.0/libs/PHPTAL.php
@@ -69,7 +69,8 @@
7070 if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") {
7171 define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\\");
7272 } else {
73 - define('PHPTAL_DEFAULT_CACHE_DIR', '/tmp/');
 73+ global $wgUploadDirectory;
 74+ define('PHPTAL_DEFAULT_CACHE_DIR', $wgUploadDirectory.'/');
7475 }
7576
7677 /**

Status & tagging log