From 05ded3b7572fafc5911fa3f740849e8ff74d1f31 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 25 Jan 2014 11:55:03 +0100 Subject: [PATCH] Better handle the exclusion mask --- syntax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 10ec971..7a39fac 100644 --- a/syntax.php +++ b/syntax.php @@ -119,10 +119,12 @@ class syntax_plugin_navigation extends DokuWiki_Syntax_Plugin /** @var DokuWikiNode $node */ if ($node->getName() == 'start') continue; + if (preg_match($this->exclusion_mask,$node->getFullID())) + continue; $title = (strlen($node->getMetaData('title')) > 0 ? $node->getMetaData('title') : $node->getName()); $access = auth_quickaclcheck($node->getFullID()); if ($node instanceof DokuWikiPage) { - if (($access > 0) && (!preg_match($this->exclusion_mask,$node->getFullID()))) { + if (($access > 0)) { $output .= '
  • ' . $title . '
  • ' . PHP_EOL; }