Prevent that all is called twice for DokuWikiNameSpace

Fixes T4
This commit is contained in:
Tim Schumacher 2013-11-26 20:46:32 +01:00
parent cee21a34bb
commit 65df960723

View file

@ -216,7 +216,9 @@ class DokuWikiIterator {
$callback($ns); $callback($ns);
foreach($ns->nodes as $node) { foreach($ns->nodes as $node) {
/** $node DokuWikiNode */ /** $node DokuWikiNode */
if ($node instanceof DokuWikiPage) {
$callback($node); $callback($node);
}
if ($node instanceof DokuWikiNameSpace) { if ($node instanceof DokuWikiNameSpace) {
$this->_all($node,$callback); $this->_all($node,$callback);
} }