mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Removed unused USE_PERSISTANT_DB constant
This commit is contained in:
@@ -183,24 +183,11 @@ class e_db_mysql implements e_db
|
|||||||
$this->mySQLPrefix = $mySQLPrefix;
|
$this->mySQLPrefix = $mySQLPrefix;
|
||||||
$this->mySQLerror = false;
|
$this->mySQLerror = false;
|
||||||
|
|
||||||
|
if (!$this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
|
||||||
if(defined("USE_PERSISTANT_DB") && USE_PERSISTANT_DB == TRUE)
|
|
||||||
{
|
|
||||||
// No persistent link parameter permitted
|
|
||||||
if ( ! $this->mySQLaccess = @mysql_pconnect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword))
|
|
||||||
{
|
{
|
||||||
$this->mySQLlastErrText = mysql_error();
|
$this->mySQLlastErrText = mysql_error();
|
||||||
return 'e1';
|
return 'e1';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( ! $this->mySQLaccess = @mysql_connect($this->mySQLserver, $this->mySQLuser, $this->mySQLpassword, $newLink))
|
|
||||||
{
|
|
||||||
$this->mySQLlastErrText = mysql_error();
|
|
||||||
return 'e1';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->mySqlServerInfo = mysql_get_server_info(); // We always need this for db_Set_Charset() - so make generally available
|
$this->mySqlServerInfo = mysql_get_server_info(); // We always need this for db_Set_Charset() - so make generally available
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user