[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[173] trunk/0.3
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2010-06-21 16:00:04
|
Revision: 173 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=173&view=rev Author: crazedsanity Date: 2010-06-21 15:59:57 +0000 (Mon, 21 Jun 2010) Log Message: ----------- Fix cs_phpDB::run_sql_file() so it works, remove debug_print() from tests... Modified Paths: -------------- trunk/0.3/cs_phpDB.class.php trunk/0.3/tests/testOfCSGenericPermissions.php Modified: trunk/0.3/cs_phpDB.class.php =================================================================== --- trunk/0.3/cs_phpDB.class.php 2010-06-21 15:54:15 UTC (rev 172) +++ trunk/0.3/cs_phpDB.class.php 2010-06-21 15:59:57 UTC (rev 173) @@ -193,14 +193,7 @@ * Execute the entire contents of the given file (with absolute path) as SQL. */ public function run_sql_file($filename) { - if(!is_object($this->fsObj)) { - if(class_exists('cs_fileSystem')) { - $fsObj = new cs_fileSystem(dirname($filename)); - } - else { - throw new exception(__METHOD__ .": required library (cs_fileSystem) not found"); - } - } + $fsObj = new cs_fileSystem(dirname($filename)); $this->lastSQLFile = $filename; Modified: trunk/0.3/tests/testOfCSGenericPermissions.php =================================================================== --- trunk/0.3/tests/testOfCSGenericPermissions.php 2010-06-21 15:54:15 UTC (rev 172) +++ trunk/0.3/tests/testOfCSGenericPermissions.php 2010-06-21 15:59:57 UTC (rev 173) @@ -73,7 +73,6 @@ $sql = "SELECT uid,username FROM cs_authentication_table ORDER BY uid"; $db = $this->create_dbconn(); $this->validUsers = $db->run_query($sql); - $this->gfObj->debug_print($this->validUsers); }//end get_valid_users() //-------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |