Skip to content

Commit 52dde88

Browse files
author
Guillaume
authored
Merge pull request #365 from Nizhile/master
Avoid CAKE_CORE_INCLUDE_PATH multiple definition
2 parents b71e276 + 4b10000 commit 52dde88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/webroot/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
* The following line differs from its sibling
6262
* /lib/Cake/Console/Templates/skel/webroot/index.php
6363
*/
64-
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . APP_DIR . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');
64+
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
65+
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . APP_DIR . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');
66+
}
6567

6668
/**
6769
* Editing below this line should NOT be necessary.

0 commit comments

Comments
 (0)