1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Removed unused USE_PERSISTANT_DB constant

This commit is contained in:
Nick Liu
2020-01-19 12:57:39 +01:00
parent c78976750c
commit 4a26ac5fd7

View File

@@ -183,23 +183,10 @@ class e_db_mysql implements e_db
$this->mySQLPrefix = $mySQLPrefix;
$this->mySQLerror = false;
if(defined("USE_PERSISTANT_DB") && USE_PERSISTANT_DB == TRUE)
if (!$this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
{
// No persistent link parameter permitted
if ( ! $this->mySQLaccess = @mysql_pconnect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword))
{
$this->mySQLlastErrText = mysql_error();
return 'e1';
}
}
else
{
if ( ! $this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
{
$this->mySQLlastErrText = mysql_error();
return 'e1';
}
$this->mySQLlastErrText = mysql_error();
return 'e1';
}
$this->mySqlServerInfo = mysql_get_server_info(); // We always need this for db_Set_Charset() - so make generally available