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  
    1919        // Connect to the database
    2020        try
    2121        {
    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));
    2324                $db->setAttribute(PDO::MYSQL_ATTR_INIT_COMMAND, "SET NAMES utf8");
    2425
    2526                return $db;