From caca994f24bb69c5ec7215bb453135fcf957a971 Mon Sep 17 00:00:00 2001 From: Denys Bushulyak Date: Fri, 19 Aug 2016 14:01:59 +0300 Subject: [PATCH] little renaming --- PhpRbac/src/PhpRbac/Rbac.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PhpRbac/src/PhpRbac/Rbac.php b/PhpRbac/src/PhpRbac/Rbac.php index 6879eb8..ab18d73 100644 --- a/PhpRbac/src/PhpRbac/Rbac.php +++ b/PhpRbac/src/PhpRbac/Rbac.php @@ -19,12 +19,11 @@ public function __construct($config = '') if ((string)$config === 'unit_test') { require_once dirname(dirname(__DIR__)) . '/tests/database/database.config'; } else { - $adapter = isset($config['adapter']) ? $config['adapter'] : "pdo_sqlite"; $host = isset($config['host']) ? $config['host'] : "localhost"; $user = isset($config['user']) ? $config['user'] : "root"; $pass = isset($config['pass']) ? $config['pass'] : ""; - $tablePrefix = isset($config['prefix']) ? $config['prefix'] : "phprbac_"; - $dbname = isset($config['db_name']) ? $config['db_name'] : false; + $tablePrefix = isset($config['prefix']) ? $config['prefix'] : "rbac_"; + $dbname = isset($config['db_name']) ? $config['db_name'] : 'rbac'; } require_once 'core/lib/Jf.php';