The last checkin broke the wiki on installations where TMP is not set
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Jul 2004 23:52:11 +0000 (23:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 17 Jul 2004 23:52:11 +0000 (23:52 +0000)
commit853b4b96406f1e75b57b8bd78eb7e38fc0729f2c
tree831ec73ddc0f68058ad64f0ae05eaa0c7d954615
parent69c9cfe6d58494bf1bd14edbc6817d39aacdd6f0
The last checkin broke the wiki on installations where TMP is not set
and the upload directory is not writable (ie, default install!)

Now checks a system-dependent default temp dir first (/tmp or
C:\Windows\Temp) and then falls back to upload dir. (TMP takes
priority over either.) If the dir is not writable, print out
an explanatory message for the poor sap trying to figure out
why the wiki isn't working.

Some of this crud shouldn't go in PHPTAL if possible, since it's
rather mediawiki-specific.
PHPTAL-NP-0.7.0/libs/PHPTAL.php