Show
Ignore:
Timestamp:
10/03/08 17:45:22 (3 months ago)
Author:
anatoo
Message:

bug fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/plain_php/trunk/core/ObjectBuilder.php

    r20336 r20610  
    1717    function buildPDO() 
    1818    { 
    19         $obj = new PDO('mysql:host=127.0.0.1;dbname=phwittr', 'phwittr', 'phwittr'); 
     19        $c = self::$context; 
     20        $obj = new PDO($c->dsn, $c->dbUser, $c->dbPassword); 
    2021        $obj->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 
    2122        $obj->exec('SET NAMES UTF8');