mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Made sure DboSource always has a prefix setting, closes #4601
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6857 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
825eb48508
commit
fb7ac680b0
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ class DboSource extends DataSource {
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
function __construct($config = null, $autoConnect = true) {
|
function __construct($config = null, $autoConnect = true) {
|
||||||
|
if (!isset($config['prefix'])) {
|
||||||
|
$config['prefix'] = '';
|
||||||
|
}
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
$this->fullDebug = Configure::read() > 1;
|
$this->fullDebug = Configure::read() > 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue