From: Hypolite Petovan Date: Fri, 12 May 2017 03:05:49 +0000 (-0400) Subject: Improved usage of `use` in dba_pdo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4293e27d5ccd2d61723d319d129fa163adb58b6b;p=friendica.git Improved usage of `use` in dba_pdo --- diff --git a/include/dba_pdo.php b/include/dba_pdo.php index 430d06f2ea..4549d7a0ce 100644 --- a/include/dba_pdo.php +++ b/include/dba_pdo.php @@ -1,12 +1,11 @@ getState()->get('PDOStatement'); $objQueue->getState()->update(array('result' => $objPDO)); @@ -51,7 +50,7 @@ class dba { $a = get_app(); # work around, to store the database - configuration in DDDBL - $objDataObjectPool = new DDDBL\DataObjectPool('Database-Definition'); + $objDataObjectPool = new DataObjectPool('Database-Definition'); $objDataObjectPool->add('DEFAULT', array('CONNECTION' => "mysql:host=$server;dbname=$db", 'USER' => $user, 'PASS' => $pass, @@ -110,7 +109,7 @@ class dba { $strQueryAlias = md5($sql); $strSQLType = strtoupper(strstr($sql, ' ', true)); - $objPreparedQueryPool = new DDDBL\DataObjectPool('Query-Definition'); + $objPreparedQueryPool = new DataObjectPool('Query-Definition'); # check if query do not exists till now, if so create its definition if (!$objPreparedQueryPool->exists($strQueryAlias))