[CS-Project-svn_notify] SF.net SVN: cs-project:[964] trunk/1.2/lib/config.class.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-02-10 17:52:16
|
Revision: 964 http://cs-project.svn.sourceforge.net/cs-project/?rev=964&view=rev Author: crazedsanity Date: 2009-02-10 17:52:09 +0000 (Tue, 10 Feb 2009) Log Message: ----------- Remove the setup filename instead of it's location (and only if it exists). 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-02-10 17:43:56 UTC (rev 963) +++ trunk/1.2/lib/config.class.php 2009-02-10 17:52:09 UTC (rev 964) @@ -302,7 +302,12 @@ //------------------------------------------------------------------------- public function remove_setup_config() { - return($this->fs->rm(SETUP_FILE_LOCATION)); + $retval = false; + if(file_exists(constant('SETUP_FILENAME'))) { + $retval = $this->fs->rm(constant('SETUP_FILENAME')); + } + + return($retval); }//end remove_setup_config() //------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |