[CS-Project-svn_notify] SF.net SVN: cs-project:[982] trunk/1.2/lib/config.class.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-09-21 02:47:42
|
Revision: 982 http://cs-project.svn.sourceforge.net/cs-project/?rev=982&view=rev Author: crazedsanity Date: 2009-09-21 02:47:34 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Remove require_once(), fix issue with removing setup filename. /lib/config.class.php: * remove_setup_config(): -- use SETUP_FILE_LOCATION constant -- update file reference to use an absolute path. Modified Paths: -------------- trunk/1.2/lib/config.class.php Modified: trunk/1.2/lib/config.class.php =================================================================== --- trunk/1.2/lib/config.class.php 2009-09-21 02:37:15 UTC (rev 981) +++ trunk/1.2/lib/config.class.php 2009-09-21 02:47:34 UTC (rev 982) @@ -1,6 +1,6 @@ <?php -require_once(dirname(__FILE__) .'/cs-content/cs_siteConfig.class.php'); +require_once(dirname(__FILE__) .'/cs-content/__autoload.php'); class config extends cs_siteConfig { @@ -303,8 +303,9 @@ //------------------------------------------------------------------------- public function remove_setup_config() { $retval = false; - if(file_exists(constant('SETUP_FILENAME'))) { - $retval = $this->fs->rm(constant('SETUP_FILENAME')); + $theFile = dirname(__FILE__) .'/../'. constant('SETUP_FILE_LOCATION'); + if(file_exists($theFile)) { + $retval = $this->fs->rm($theFile); } return($retval); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |