Skip to content

Commit

Permalink
improv. fix weird issue with initialize function
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo committed Dec 6, 2021
1 parent 7920748 commit eb5786a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Controller/Component/UtilComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class UtilComponent extends CakeObject

private $smtpOptions = [];

private $db_type;
private $db_type = "mysql";

function shutdown($controller)
{
Expand All @@ -37,11 +37,11 @@ function initialize($controller)
$this->controller->Configuration = ClassRegistry::init('Configuration');
}

$this->db_type = ConnectionManager::$config->default['datasource'];
}

function startup($controller)
{
$this->db_type = ConnectionManager::$config->default['datasource'];
}

// Get ip (support cloudfare)
Expand Down

0 comments on commit eb5786a

Please sign in to comment.