Skip to content

Commit

Permalink
Update v2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
IonutPopescuRO committed Feb 18, 2023
1 parent 63ad5e2 commit e960b01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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ă
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion include/classes/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e960b01

Please sign in to comment.