diff --git a/index.php b/index.php index 480a9c73206..b54f617f38b 100644 --- a/index.php +++ b/index.php @@ -20,21 +20,23 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Get Cake's root directory */ - define('APP_DIR', 'app'); - define('DS', DIRECTORY_SEPARATOR); - define('ROOT', dirname(__FILE__)); - define('WEBROOT_DIR', 'webroot'); - define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); +define('APP_DIR', 'app'); +define('DS', DIRECTORY_SEPARATOR); +define('ROOT', dirname(__FILE__)); +define('WEBROOT_DIR', 'webroot'); +define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); + /** * This only needs to be changed if the "cake" directory is located * outside of the distributed structure. * Full path to the directory containing "cake". Do not add trailing directory separator */ - if (!defined('CAKE_CORE_INCLUDE_PATH')) { - define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); - } +if (!defined('CAKE_CORE_INCLUDE_PATH')) { + define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); +} - require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; +require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';