Skip to content
Snippets Groups Projects
Unverified Commit 1d839f03 authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #2063 from BS666/dontshowhiddenpagesintarce

prevent hidden pages to be shown in trace
parents 687e4484 4d1fee4c
No related branches found
No related tags found
No related merge requests found
......@@ -382,9 +382,9 @@ function breadcrumbs() {
//first visit?
$crumbs = isset($_SESSION[DOKU_COOKIE]['bc']) ? $_SESSION[DOKU_COOKIE]['bc'] : array();
//we only save on show and existing wiki documents
//we only save on show and existing visible wiki documents
$file = wikiFN($ID);
if($ACT != 'show' || !file_exists($file)) {
if($ACT != 'show' || isHiddenPage($ID) || !file_exists($file)) {
$_SESSION[DOKU_COOKIE]['bc'] = $crumbs;
return $crumbs;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment