mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 10:02:42 +00:00
Deprecate constants IMAGES_URL, CSS_URL, JS_URL and add corresponding config values instead.
This commit is contained in:
parent
48df85d80d
commit
b22b39f158
7 changed files with 63 additions and 23 deletions
|
@ -168,6 +168,10 @@ if (!defined('FULL_BASE_URL')) {
|
|||
unset($httpHost, $s);
|
||||
}
|
||||
|
||||
Configure::write('App.imagesURL', IMAGES_URL);
|
||||
Configure::write('App.cssURL', CSS_URL);
|
||||
Configure::write('App.jsURL', JS_URL);
|
||||
|
||||
App::$bootstrapping = true;
|
||||
|
||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue