mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #7469 from cakephp/issue-7465
Load config file before checking class existence.
This commit is contained in:
commit
5a8a7800ae
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ class CakeEmail {
|
|||
|
||||
if ($config) {
|
||||
$this->config($config);
|
||||
} elseif (class_exists($this->_configClass) && config('email')) {
|
||||
} elseif (config('email') && class_exists($this->_configClass)) {
|
||||
$this->_configInstance = new $this->_configClass();
|
||||
if (isset($this->_configInstance->default)) {
|
||||
$this->config('default');
|
||||
|
|
Loading…
Add table
Reference in a new issue