Using full base when $url is empty.

This commit is contained in:
Juan Basso 2010-11-03 01:16:38 -02:00
parent 94f9f7afeb
commit b752766d6c

View file

@ -741,7 +741,11 @@ class Router {
$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;