Prevent that all is called twice for DokuWikiNameSpace
Fixes T4
This commit is contained in:
parent
cee21a34bb
commit
65df960723
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue