Ticket #42694: patch-includes-functions.php.diff
File patch-includes-functions.php.diff, 777 bytes (added by jul_bsd@…, 11 years ago) |
---|
-
includes/functions.php
old new 19 19 // Connect to the database 20 20 try 21 21 { 22 $db = new PDO("mysql:dbname=".DB_DATABASE.";host=".DB_HOSTNAME.";port=".DB_PORT,DB_USERNAME,DB_PASSWORD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); 22 #$db = new PDO("mysql:dbname=".DB_DATABASE.";host=".DB_HOSTNAME.";port=".DB_PORT,DB_USERNAME,DB_PASSWORD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); 23 $db = new PDO(DB_URL,DB_USERNAME,DB_PASSWORD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); 23 24 $db->setAttribute(PDO::MYSQL_ATTR_INIT_COMMAND, "SET NAMES utf8"); 24 25 25 26 return $db;