Browse Source

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

mark_story 15 years ago
parent
commit
011aeae951
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/ShellDispatcher.php

+ 1 - 1
lib/Cake/Console/ShellDispatcher.php

@@ -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;