mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
closes #4576, check for defines
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6980 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aa00e47fe8
commit
2f0a556948
1 changed files with 6 additions and 0 deletions
|
@ -45,7 +45,9 @@
|
|||
/**
|
||||
* Path to the application's directory.
|
||||
*/
|
||||
if (!defined('APP')) {
|
||||
define ('APP', ROOT.DS.APP_DIR.DS);
|
||||
}
|
||||
/**
|
||||
* Path to the application's models directory.
|
||||
*/
|
||||
|
@ -83,7 +85,9 @@
|
|||
/**
|
||||
* Path to the configuration files directory.
|
||||
*/
|
||||
if (!defined('CONFIGS')) {
|
||||
define ('CONFIGS', APP.'config'.DS);
|
||||
}
|
||||
/**
|
||||
* Path to the libs directory.
|
||||
*/
|
||||
|
@ -174,6 +178,7 @@ if (!defined('VENDORS')) {
|
|||
/**
|
||||
* Full url prefix
|
||||
*/
|
||||
if (!defined('FULL_BASE_URL')) {
|
||||
$s = null;
|
||||
if (env('HTTPS')) {
|
||||
$s ='s';
|
||||
|
@ -185,6 +190,7 @@ if (!defined('VENDORS')) {
|
|||
define('FULL_BASE_URL', 'http'.$s.'://'.$httpHost);
|
||||
}
|
||||
unset($httpHost, $s);
|
||||
}
|
||||
/**
|
||||
* Web path to the public images directory.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue