diff --git a/README.md b/README.md index 3111f0d..f30b5ba 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Communication with the database of the cms is done using the PDO extension. Sett LANGUAGES ------------ -The platform is available in 11 languages: +The platform is available in 12 languages: - [en] English - [ro] Română @@ -34,6 +34,7 @@ The platform is available in 11 languages: - [hu] Magyar - [de] Deutsch - [el] Ελληνικά + - [ar] العربية If you want to help, you can translate in your language and send us. diff --git a/include/classes/database.php b/include/classes/database.php index 8a11864..25b9b3b 100644 --- a/include/classes/database.php +++ b/include/classes/database.php @@ -11,7 +11,7 @@ public function dbConnection($host, $db_name, $user, $password, $sqlite=null) try { if($sqlite==null) - $this->conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $user, $password); + $this->conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $user, $password, [PDO::ATTR_TIMEOUT => 5, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"]); else { $this->conn = new PDO("sqlite:include/db/site.db");