Changeset 679 for trunk/phpbms/install
- Timestamp:
- 12/15/09 12:22:34 (2 years ago)
- Location:
- trunk/phpbms/install
- Files:
-
- 2 modified
-
installajax.php (modified) (3 diffs)
-
install_include.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/install/installajax.php
r642 r679 221 221 222 222 function moduleInstall($module){ 223 223 224 224 if(!$this->db->connect()) 225 225 return $this->returnJSON(false, "Could not connect to database ".$this->db->getError()); … … 328 328 329 329 function install(){ 330 330 331 331 if(!$this->db->connect()) 332 332 return $this->returnJSON(false, "Could not connect to database ".$this->db->getError()); … … 338 338 339 339 //Run create table sql file ocreate the tables 340 $tempReturn = $installer->processSQLfile($this->pathToModule.$this->createTablesSQL); 341 342 if($tempReturn !== true) 343 return $this->returnJSON(false, $tempReturn); 340 if(file_exists($this->pathToModule.$this->createTablesSQL)){ 341 $tempReturn = $installer->processSQLfile($this->pathToModule.$this->createTablesSQL); 342 343 if($tempReturn !== true) 344 return $this->returnJSON(false, $tempReturn); 345 346 }//end if 344 347 345 348 $thereturn = ""; -
trunk/phpbms/install/install_include.php
r528 r679 20 20 21 21 foreach($fileReturn->errors as $error) 22 $return = "\n\n".$error;22 $return .= "\n\n".$error; 23 23 24 24 $return = substr($return, 2);