|
25 | 25 | if (!defined('DS')) {
|
26 | 26 | define('DS', DIRECTORY_SEPARATOR);
|
27 | 27 | }
|
| 28 | + |
28 | 29 | /**
|
29 | 30 | * These defines should only be edited if you have cake installed in
|
30 | 31 | * a directory layout other than the way it is distributed.
|
|
38 | 39 | if (!defined('ROOT')) {
|
39 | 40 | define('ROOT', dirname(dirname(dirname(__FILE__))));
|
40 | 41 | }
|
| 42 | + |
41 | 43 | /**
|
42 | 44 | * The actual directory name for the "app".
|
43 | 45 | *
|
|
49 | 51 | /**
|
50 | 52 | * The absolute path to the "Cake" directory, WITHOUT a trailing DS.
|
51 | 53 | *
|
52 |
| - * For ease of development CakePHP uses PHP's include_path. If you |
| 54 | + * For ease of development CakePHP uses PHP's include_path. If you |
53 | 55 | * need to cannot modify your include_path, you can set this path.
|
54 | 56 | *
|
55 | 57 | * Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
|
| 58 | + * |
| 59 | + * The following line differs from its sibling |
| 60 | + * /lib/Cake/Console/Templates/skel/webroot/test.php |
56 | 61 | */
|
57 |
| - //define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); |
| 62 | +//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); |
58 | 63 |
|
59 | 64 | /**
|
60 | 65 | * Editing below this line should not be necessary.
|
|
72 | 77 | if (function_exists('ini_set')) {
|
73 | 78 | ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
|
74 | 79 | }
|
75 |
| - if (!include ('Cake' . DS . 'bootstrap.php')) { |
| 80 | + if (!include('Cake' . DS . 'bootstrap.php')) { |
76 | 81 | $failed = true;
|
77 | 82 | }
|
78 | 83 | } else {
|
79 |
| - if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { |
| 84 | + if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { |
80 | 85 | $failed = true;
|
81 | 86 | }
|
82 | 87 | }
|
83 | 88 | if (!empty($failed)) {
|
84 |
| - 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); |
| 89 | + 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); |
85 | 90 | }
|
86 | 91 |
|
87 | 92 | if (Configure::read('debug') < 1) {
|
|
0 commit comments