Permalink
Browse files

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
  • Loading branch information...
1 parent 7b90542 commit 3a06dc5e1c923018cfead5803906b87de5fd9d99 @markstory markstory committed Apr 2, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Cake/bootstrap.php
View
@@ -62,17 +62,23 @@
/**
* 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.

0 comments on commit 3a06dc5

Please sign in to comment.