mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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
This commit is contained in:
parent
7b90542230
commit
3a06dc5e1c
1 changed files with 6 additions and 0 deletions
|
@ -62,17 +62,23 @@ if (!defined('APP')) {
|
||||||
/**
|
/**
|
||||||
* Path to the public CSS directory.
|
* Path to the public CSS directory.
|
||||||
*/
|
*/
|
||||||
|
if (!defined('CSS')) {
|
||||||
define('CSS', WWW_ROOT . 'css' . DS);
|
define('CSS', WWW_ROOT . 'css' . DS);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to the public JavaScript directory.
|
* Path to the public JavaScript directory.
|
||||||
*/
|
*/
|
||||||
|
if (!defined('JS')) {
|
||||||
define('JS', WWW_ROOT . 'js' . DS);
|
define('JS', WWW_ROOT . 'js' . DS);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to the public images directory.
|
* Path to the public images directory.
|
||||||
*/
|
*/
|
||||||
|
if (!defined('IMAGES')) {
|
||||||
define('IMAGES', WWW_ROOT . 'img' . DS);
|
define('IMAGES', WWW_ROOT . 'img' . DS);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to the tests directory.
|
* Path to the tests directory.
|
||||||
|
|
Loading…
Reference in a new issue