[Phpfreechat-svn] SF.net SVN: phpfreechat: [928] trunk/src/containers/file.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-01-12 17:22:59
|
Revision: 928 http://svn.sourceforge.net/phpfreechat/?rev=928&view=rev Author: kerphi Date: 2007-01-12 09:22:56 -0800 (Fri, 12 Jan 2007) Log Message: ----------- bug fix: it was impossible to overload the file container parameters Modified Paths: -------------- trunk/src/containers/file.class.php Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2007-01-12 16:29:19 UTC (rev 927) +++ trunk/src/containers/file.class.php 2007-01-12 17:22:56 UTC (rev 928) @@ -36,8 +36,10 @@ function loadPaths() { $c =& $this->c; - $c->container_cfg_chat_dir = $c->data_private_path."/chat"; - $c->container_cfg_server_dir = $c->container_cfg_chat_dir."/s_".$c->serverid; + if (!isset($c->container_cfg_chat_dir)) + $c->container_cfg_chat_dir = $c->data_private_path."/chat"; + if (!isset($c->container_cfg_server_dir)) + $c->container_cfg_server_dir = $c->container_cfg_chat_dir."/s_".$c->serverid; } function getDefaultConfig() @@ -56,8 +58,6 @@ $c =& $this->c; // generate the container parameters from other config parameters - if ($c->container_cfg_chat_dir == "") - $c->container_cfg_chat_dir = $c->data_private_path."/chat"; $this->loadPaths(); $errors = array_merge($errors, @test_writable_dir($c->container_cfg_chat_dir, "container_cfg_chat_dir")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |