[-] MO : applied unachieved patch on blockbestsellers

This commit is contained in:
Damien Metzger
2013-02-12 12:03:17 +01:00
parent 887092d292
commit 6a5565e28b
2 changed files with 32 additions and 47 deletions
+2 -2
View File
@@ -54,12 +54,12 @@ class DbPDOCore extends Db
try {
$this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);
} catch (PDOException $e) {
throw new PrestaShopDatabaseException(sprintf(Tools::displayError('Link to database cannot be established: %s'), $e->getMessage()));
die(sprintf(Tools::displayError('Link to database cannot be established: %s'), utf8_encode($e->getMessage())));
}
// UTF-8 support
if ($this->link->exec('SET NAMES \'utf8\'') === false)
throw new PrestaShopDatabaseException(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
die(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));
return $this->link;
}