Giving a useful value to FULL_BASE_URL in CLI if it doesn't get defined by the developer.

This commit is contained in:
mark_story 2011-05-10 21:05:14 -04:00
parent 339db4033f
commit 011aeae951

View file

@ -141,7 +141,7 @@ class ShellDispatcher {
set_error_handler(array('ConsoleErrorHandler', 'handleError'), Configure::read('Error.level'));
if (!defined('FULL_BASE_URL')) {
define('FULL_BASE_URL', '/');
define('FULL_BASE_URL', 'http://localhost');
}
return true;