2008-08-19 Esteban Sanchez <estebans@artica.es>

* include/locale.class.php: Check $ENV["TMPDIR"] existance to avoid
        PHP errors.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1012 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2008-08-20 08:17:52 +00:00
parent 20c7a00281
commit 620c16d59e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-19 Esteban Sanchez <estebans@artica.es>
* include/locale.class.php: Check $ENV["TMPDIR"] existance to avoid
PHP errors.
2008-08-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/locale.class.php: Locale class for number, time and money

View File

@ -640,7 +640,7 @@ class Set_Locale {
//Find out the cache location in case none is given
if($cacheloc === false) {
if(!empty($_ENV)) {
if(!empty($_ENV["TMPDIR"])) {
$cacheloc = $_ENV["TMPDIR"];
} elseif (ini_get('upload_tmp_dir') != "") {
$cacheloc = ini_get('upload_tmp_dir');