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);
foreach($ns->nodes as $node) {
/** $node DokuWikiNode */
$callback($node);
if ($node instanceof DokuWikiPage) {
$callback($node);
}
if ($node instanceof DokuWikiNameSpace) {
$this->_all($node,$callback);
}