зеркало из https://github.com/mozilla/pjs.git
fixed a mistake in the breadcrumbs
This commit is contained in:
Родитель
e8f9a40fef
Коммит
bde96546fc
|
@ -47,7 +47,12 @@ class BreadcrumbHelper
|
|||
if (empty($link)) {
|
||||
$_ret .= (empty($_ret)) ? "<span>{$name}</span>\n" : "» <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" : '» <span><a href="'.$href.'">'.$name.'</a></span>'."\n";
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче