Skip to content

Commit

Permalink
Merge pull request #25 from geekwright/master
Browse files Browse the repository at this point in the history
Standardized avatar, database logging cleanup
  • Loading branch information
geekwright committed Oct 6, 2013
2 parents df113b0 + 8a33fa9 commit 7e0703b
Show file tree
Hide file tree
Showing 50 changed files with 2,236 additions and 1,489 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ htdocs/mainfile.php
htdocs/xoops_data/caches/smarty_cache/*.php
htdocs/xoops_data/caches/smarty_compile/*.php
htdocs/xoops_data/caches/xoops_cache/*.php
htdocs/xoops_data/caches/xoops_cache/*/
htdocs/xoops_data/configs/*.php
htdocs/xoops_data/composer/
htdocs/xoops_data/data/secure.php
htdocs/xoops_data/logs/
htdocs/xoops_lib/vendor/
htdocs/xoops_lib/composer.lock
htdocs/uploads/avatars/
htdocs/uploads/banners/
4 changes: 3 additions & 1 deletion htdocs/class/database/databasefactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

use Xoops\Core\Database\Logging\XoopsDebugStack;

/**
* XoopsDatabaseFactory class
*
Expand All @@ -24,7 +26,6 @@
* @link http://xoops.org
* @since 2.6.0
*/

class XoopsDatabaseFactory
{

Expand All @@ -49,6 +50,7 @@ public static function getDatabaseConnection()
if (!isset($instance)) {
//New database connector
$config = new \Doctrine\DBAL\Configuration();
$config->setSQLLogger(new XoopsDebugStack());
$connectionParams = array(
'dbname' => XOOPS_DB_NAME,
'user' => XOOPS_DB_USER,
Expand Down

0 comments on commit 7e0703b

Please sign in to comment.