mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing paths in test.php file
This commit is contained in:
parent
b286ff0523
commit
ff31792e8d
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ ini_set('display_errors', 1);
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||||
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS .'lib');
|
define('CAKE_CORE_INCLUDE_PATH', ROOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,7 +65,7 @@ if (!defined('WWW_ROOT')) {
|
||||||
}
|
}
|
||||||
if (!defined('CORE_PATH')) {
|
if (!defined('CORE_PATH')) {
|
||||||
define('APP_PATH', ROOT . DS . APP_DIR . DS);
|
define('APP_PATH', ROOT . DS . APP_DIR . DS);
|
||||||
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
|
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS . 'lib' . DS);
|
||||||
}
|
}
|
||||||
if (!include(CORE_PATH . 'Cake' . DS . 'bootstrap.php')) {
|
if (!include(CORE_PATH . 'Cake' . DS . 'bootstrap.php')) {
|
||||||
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
|
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
|
||||||
|
|
Loading…
Reference in a new issue