mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding comments about CAKE_CORE_INCLUDE_PATH.
Removing ini_set() blocks that don't need to exist.
This commit is contained in:
parent
b362afee06
commit
b45e8eb0cd
4 changed files with 8 additions and 6 deletions
|
@ -53,6 +53,8 @@
|
||||||
*
|
*
|
||||||
* For ease of development CakePHP uses PHP's include_path. If you
|
* For ease of development CakePHP uses PHP's include_path. If you
|
||||||
* cannot modify your include_path set this value.
|
* cannot modify your include_path set this value.
|
||||||
|
*
|
||||||
|
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
|
||||||
*/
|
*/
|
||||||
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,8 @@ ini_set('display_errors', 1);
|
||||||
*
|
*
|
||||||
* For ease of development CakePHP uses PHP's include_path. If you
|
* For ease of development CakePHP uses PHP's include_path. If you
|
||||||
* need to cannot modify your include_path, you can set this path.
|
* need to cannot modify your include_path, you can set this path.
|
||||||
|
*
|
||||||
|
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
|
||||||
*/
|
*/
|
||||||
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
*
|
*
|
||||||
* For ease of development CakePHP uses PHP's include_path. If you
|
* For ease of development CakePHP uses PHP's include_path. If you
|
||||||
* need to squeeze a bit more performance you can set this path.
|
* need to squeeze a bit more performance you can set this path.
|
||||||
|
*
|
||||||
|
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
|
||||||
*/
|
*/
|
||||||
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
|
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
|
||||||
|
|
||||||
|
@ -69,9 +71,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||||
if (function_exists('ini_set')) {
|
|
||||||
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
|
|
||||||
}
|
|
||||||
if (!include('Cake' . DS . 'bootstrap.php')) {
|
if (!include('Cake' . DS . 'bootstrap.php')) {
|
||||||
$failed = true;
|
$failed = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,8 @@ ini_set('display_errors', 1);
|
||||||
*
|
*
|
||||||
* For ease of development CakePHP uses PHP's include_path. If you
|
* For ease of development CakePHP uses PHP's include_path. If you
|
||||||
* need to cannot modify your include_path, you can set this path.
|
* need to cannot modify your include_path, you can set this path.
|
||||||
|
*
|
||||||
|
* Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
|
||||||
*/
|
*/
|
||||||
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
|
//define('CAKE_CORE_INCLUDE_PATH', __CAKE_PATH__);
|
||||||
|
|
||||||
|
@ -66,9 +68,6 @@ if (!defined('WWW_ROOT')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
|
||||||
if (function_exists('ini_set')) {
|
|
||||||
ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
|
|
||||||
}
|
|
||||||
if (!include('Cake' . DS . 'bootstrap.php')) {
|
if (!include('Cake' . DS . 'bootstrap.php')) {
|
||||||
$failed = true;
|
$failed = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue