Skip to content

Commit

Permalink
Using full base when $url is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Nov 3, 2010
1 parent 94f9f7a commit b752766
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cake/libs/router.php
Expand Up @@ -741,7 +741,11 @@ public static function url($url = null, $full = false) {
$extension = $output = $mapped = $q = $frag = null;

if (empty($url)) {
return isset($path['here']) ? $path['here'] : '/';
$output = isset($path['here']) ? $path['here'] : '/';
if ($full && defined('FULL_BASE_URL')) {
$output = FULL_BASE_URL . $output;
}
return $output;
} elseif (is_array($url)) {
if (isset($url['base']) && $url['base'] === false) {
$base = null;
Expand Down

0 comments on commit b752766

Please sign in to comment.