Compare commits
2 Commits
339e171ec7
...
fd53bfa625
| Author | SHA1 | Date | |
|---|---|---|---|
| fd53bfa625 | |||
| e3641093ab |
BIN
images/apple-touch-icon.png
Executable file → Normal file
BIN
images/apple-touch-icon.png
Executable file → Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -16,6 +16,15 @@ if ($conf['useacl']) {
|
||||
$breadcrumbsHtml = '';
|
||||
if ($conf['youarehere']) {
|
||||
$breadcrumbsHtml = tpl_youarehere(null, true);
|
||||
// Remove the "You are here" label and the start page link,
|
||||
// since the wiki logo already links to the start page.
|
||||
if ($breadcrumbsHtml) {
|
||||
// Strip the label span and the home/start page span
|
||||
$breadcrumbsHtml = preg_replace('/<span class="bchead">.*?<\/span>/', '', $breadcrumbsHtml);
|
||||
$breadcrumbsHtml = preg_replace('/<span class="home">.*?<\/span>/', '', $breadcrumbsHtml);
|
||||
// Remove any leading separator left over after stripping the home link
|
||||
$breadcrumbsHtml = preg_replace('/^\s*»\s*/', '' , trim($breadcrumbsHtml));
|
||||
}
|
||||
}
|
||||
if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
||||
$breadcrumbsHtml = tpl_breadcrumbs(null, true);
|
||||
|
||||
Reference in New Issue
Block a user