mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 20:46:24 +00:00
Giving a useful value to FULL_BASE_URL in CLI if it doesn't get defined by the developer.
This commit is contained in:
parent
339db4033f
commit
011aeae951
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class ShellDispatcher {
|
||||||
set_error_handler(array('ConsoleErrorHandler', 'handleError'), Configure::read('Error.level'));
|
set_error_handler(array('ConsoleErrorHandler', 'handleError'), Configure::read('Error.level'));
|
||||||
|
|
||||||
if (!defined('FULL_BASE_URL')) {
|
if (!defined('FULL_BASE_URL')) {
|
||||||
define('FULL_BASE_URL', '/');
|
define('FULL_BASE_URL', 'http://localhost');
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue