From 3a06dc5e1c923018cfead5803906b87de5fd9d99 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 1 Apr 2013 21:59:41 -0400 Subject: [PATCH] Make JS,CSS,IMAGES conditionally defined. This allows app's to redefine these constants as necessary. This makes these constants consistent with their *_URL relatives. Fixes #GH-1170 --- lib/Cake/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Cake/bootstrap.php b/lib/Cake/bootstrap.php index 8f01abbdc..f4001b70f 100644 --- a/lib/Cake/bootstrap.php +++ b/lib/Cake/bootstrap.php @@ -62,17 +62,23 @@ if (!defined('APP')) { /** * Path to the public CSS directory. */ +if (!defined('CSS')) { define('CSS', WWW_ROOT . 'css' . DS); +} /** * Path to the public JavaScript directory. */ +if (!defined('JS')) { define('JS', WWW_ROOT . 'js' . DS); +} /** * Path to the public images directory. */ +if (!defined('IMAGES')) { define('IMAGES', WWW_ROOT . 'img' . DS); +} /** * Path to the tests directory.