[CS-Project-svn_notify] SF.net SVN: cs-project: [810] trunk/1.2/lib/config.class.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-02-09 03:48:08
|
Revision: 810 http://cs-project.svn.sourceforge.net/cs-project/?rev=810&view=rev Author: crazedsanity Date: 2008-02-08 19:48:05 -0800 (Fri, 08 Feb 2008) Log Message: ----------- Minor changes to the config class. /lib/config.class.php: * __construct(): -- set root of cs_fileSystemClass{} to be one level below current. * get_config_contents(): -- use internal fileName instead of always referring to site config. Modified Paths: -------------- trunk/1.2/lib/config.class.php Modified: trunk/1.2/lib/config.class.php =================================================================== --- trunk/1.2/lib/config.class.php 2008-02-09 03:43:29 UTC (rev 809) +++ trunk/1.2/lib/config.class.php 2008-02-09 03:48:05 UTC (rev 810) @@ -14,7 +14,7 @@ //------------------------------------------------------------------------- public function __construct($fileName=NULL, $redirectOnFileMissing=TRUE) { $this->gf = new cs_globalFunctions(); - $this->fs = new cs_fileSystemClass(dirname(__FILE__)); + $this->fs = new cs_fileSystemClass(dirname(__FILE__) .'/..'); $this->fileName = dirname(__FILE__) .'/'. CONFIG_FILENAME; if(!is_null($fileName) && strlen($fileName)) { @@ -43,7 +43,7 @@ */ public function get_config_contents($simple=TRUE) { if($this->fileExists) { - $xmlString = $this->fs->read(CONFIG_FILENAME); + $xmlString = $this->fs->read($this->fileName); //parse the file. $xmlParser = new xmlParser($xmlString); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |