mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing some issues in ACL related classes when using database prefixes
This commit is contained in:
parent
8f62d01701
commit
00f3aaf615
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ class AclNode extends AppModel {
|
|||
* @return array Node found in database
|
||||
*/
|
||||
public function node($ref = null) {
|
||||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
||||
$db = $this->getDataSource();
|
||||
$type = $this->alias;
|
||||
$result = null;
|
||||
|
||||
|
|
|
@ -363,8 +363,8 @@ class AclNodeTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testNodeAliasParenting() {
|
||||
$Aco = new DbAcoTest();
|
||||
$db = ConnectionManager::getDataSource('test');
|
||||
$Aco = ClassRegistry::init('DbAcoTest');
|
||||
$db = $Aco->getDataSource();
|
||||
$db->truncate($Aco);
|
||||
|
||||
$Aco->create(array('model' => null, 'foreign_key' => null, 'parent_id' => null, 'alias' => 'Application'));
|
||||
|
|
Loading…
Reference in a new issue