Fix warning when FULL_BASE_URL is unknown. fixes #5683

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7804 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
TommyO 2008-10-30 15:05:46 +00:00
parent 25ec40600c
commit 2d5773be6b

View file

@ -914,7 +914,7 @@ class Router extends Object {
} }
$output = str_replace('//', '/', $output); $output = str_replace('//', '/', $output);
} }
if ($full) { if ($full && defined('FULL_BASE_URL')) {
$output = FULL_BASE_URL . $output; $output = FULL_BASE_URL . $output;
} }
if (!empty($extension) && substr($output, -1) === '/') { if (!empty($extension) && substr($output, -1) === '/') {