Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
174d217f11 | ||
|
56ce743994 |
2 changed files with 15 additions and 0 deletions
|
@ -83,6 +83,13 @@ abstract class DokuWikiNode
|
|||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return DokuWikiNameSpace
|
||||
*/
|
||||
public function getParent() {
|
||||
return $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $filename
|
||||
* @param null $parent
|
||||
|
|
|
@ -42,6 +42,14 @@ class DokuWikiPage extends DokuWikiNode
|
|||
$this->ChangeLog->append($changelog);
|
||||
}
|
||||
}
|
||||
if ($this->ChangeLog->count() > 0) {
|
||||
$this->ChangeLog->uasort(function(DokuWikiChangeset $a, DokuWikiChangeset $b){
|
||||
if ($a->getDate() == $b->getDate()) {
|
||||
return 0;
|
||||
}
|
||||
return ($a->getDate() > $b->getDate()) ? -1 : 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue