From 65df960723a6fae36e0026087a5581c285bae9d8 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 26 Nov 2013 20:46:32 +0100 Subject: [PATCH] Prevent that all is called twice for DokuWikiNameSpace Fixes T4 --- DokuWikiObjectRepresentation.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DokuWikiObjectRepresentation.class.php b/DokuWikiObjectRepresentation.class.php index ed063c0..3da2d6c 100644 --- a/DokuWikiObjectRepresentation.class.php +++ b/DokuWikiObjectRepresentation.class.php @@ -216,7 +216,9 @@ class DokuWikiIterator { $callback($ns); foreach($ns->nodes as $node) { /** $node DokuWikiNode */ - $callback($node); + if ($node instanceof DokuWikiPage) { + $callback($node); + } if ($node instanceof DokuWikiNameSpace) { $this->_all($node,$callback); }