Skip to content

Commit

Permalink
Update install.func.php
Browse files Browse the repository at this point in the history
Fixing error while install because directly include config file
  • Loading branch information
huedaya committed Nov 14, 2015
1 parent fcababe commit fb0ead8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions elybin-install/inc/install.func.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,17 +600,22 @@ function connect_with_config(){
* error code : 0 => configfile not found
* @since 1.1.3
*/
if(!include(many_trans().'elybin-core/elybin-config.php')){
// check existance
if(!file_exists(many_trans().'elybin-core/elybin-config.php')){
return false;
}else{
if(!include(many_trans().'elybin-core/elybin-config.php')){
return false;
}else{

$con = mysql_connect(DB_HOST,DB_USER,DB_PASSWD) or die(mysql_error());
$con = mysql_connect(DB_HOST,DB_USER,DB_PASSWD) or die(mysql_error());

if($con){
if(mysql_select_db(DB_NAME,$con)){
return true;
}else{
return false;
if($con){
if(mysql_select_db(DB_NAME,$con)){
return true;
}else{
return false;
}
}
}
}
Expand Down

0 comments on commit fb0ead8

Please sign in to comment.