Skip to content

Commit

Permalink
little renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Bushulyak committed Aug 19, 2016
1 parent 6bd6bec commit caca994
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PhpRbac/src/PhpRbac/Rbac.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit caca994

Please sign in to comment.