fixed a mistake in the breadcrumbs

This commit is contained in:
uid815 2006-05-25 23:42:58 +00:00
Родитель e8f9a40fef
Коммит bde96546fc
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -47,7 +47,12 @@ class BreadcrumbHelper
if (empty($link)) {
$_ret .= (empty($_ret)) ? "<span>{$name}</span>\n" : "&raquo; <span>{$name}</span>\n";
} else {
$href = $this->webroot.$link;
/* This should really check for any protocol */
if (strpos($link,'http') === 0) {
$href = $link;
} else {
$href = $this->webroot.$link;
}
$_ret .= (empty($_ret)) ? '<span><a href="'.$href.'">'.$name.'</a></span>'."\n" : '&raquo; <span><a href="'.$href.'">'.$name.'</a></span>'."\n";
}
}