// Fix PrestaShopException typo
This commit is contained in:
@@ -36,14 +36,14 @@ class MySQLCore extends Db
|
||||
define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string'));
|
||||
|
||||
if (!$this->link = mysql_connect($this->server, $this->user, $this->password))
|
||||
throw new PrestashopDatabaseException(Tools::displayError('Link to database cannot be established.'));
|
||||
throw new PrestaShopDatabaseException(Tools::displayError('Link to database cannot be established.'));
|
||||
|
||||
if (!$this->set_db($this->database))
|
||||
throw new PrestashopDatabaseException(Tools::displayError('The database selection cannot be made.'));
|
||||
throw new PrestaShopDatabaseException(Tools::displayError('The database selection cannot be made.'));
|
||||
|
||||
// UTF-8 support
|
||||
if (!mysql_query('SET NAMES \'utf8\'', $this->link))
|
||||
throw new PrestashopDatabaseException(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
|
||||
throw new PrestaShopDatabaseException(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
|
||||
|
||||
return $this->link;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user