CVS update: /cowiki/htdocs/setup/class/task/

[email protected] 12 Sep 2005 20:26:52 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/09/12 13:26:52

Modified:
   cowiki/htdocs/setup/class/task/class.TaskFinish.php

Log:
 Force the [PATH] TEMP path to be the "session.save_path"

File Changes:

Directory: /cowiki/htdocs/setup/class/task/
===========================================

File [changed]: class.TaskFinish.php
Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/setup/class/task/class.TaskFinish.php?r1=1.6&r2=1.7
Delta lines:  +15 -2
--------------------
--- class.TaskFinish.php	12 May 2005 17:13:07 -0000	1.6
+++ class.TaskFinish.php	12 Sep 2005 20:26:50 -0000	1.7
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.TaskFinish.php,v 1.6 2005/05/12 17:13:07 dgorski Exp $
+ * $Id: class.TaskFinish.php,v 1.7 2005/09/12 20:26:50 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.6 $
+ * @version     $Revision: 1.7 $
  *
  */
 
@@ -193,6 +193,19 @@
             'RUNTIME', 'EMAIL_OBFUSCATE', $this->State->hasEmailObfuscation()
         );
 
+        // ----------------------------------------------------------------
+
+        // [PATH] section
+
+        // Force the TEMP path to be the "session.save_path". See the
+        // decription in the php.ini file for how a "session.save_path"
+        // can look like.
+        $aArr = explode(';', ini_get('session.save_path'));
+        $Conf->setSectionKeyValue('PATH', 'TEMP', $aArr[sizeof($aArr)-1]);
+        
+        // ---
+
+        // Store the configuration file.
         $sConfigFile = $this->State->getIncludesPath() . '/core.conf';
         $Conf->store($sConfigFile);
     }