1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

Reversed the display order of page history. Fixes #80.

This commit is contained in:
Starbeamrainbowlabs 2016-06-08 18:06:16 +01:00
parent d1320aa467
commit fb0389576d
3 changed files with 3 additions and 3 deletions

View file

@ -1798,7 +1798,7 @@ register_module([
if(!empty($pageindex->{$env->page}->history)) if(!empty($pageindex->{$env->page}->history))
{ {
$content .= "\t\t<ul class='page-list'>\n"; $content .= "\t\t<ul class='page-list'>\n";
foreach($pageindex->{$env->page}->history as $revisionData) foreach(array_reverse($pageindex->{$env->page}->history) as $revisionData)
{ {
// Only display edits for now // Only display edits for now
if($revisionData->type != "edit") if($revisionData->type != "edit")

View file

@ -41,7 +41,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds the ability to keep unlimited page history, limited only by your disk space. Note that this doesn't store file history (yet). Currently depends on feature-recent-changes for rendering of the history page.", "description": "Adds the ability to keep unlimited page history, limited only by your disk space. Note that this doesn't store file history (yet). Currently depends on feature-recent-changes for rendering of the history page.",
"id": "feature-history", "id": "feature-history",
"lastupdate": 1465404004, "lastupdate": 1465405521,
"optional": false "optional": false
}, },
{ {

View file

@ -22,7 +22,7 @@ register_module([
if(!empty($pageindex->{$env->page}->history)) if(!empty($pageindex->{$env->page}->history))
{ {
$content .= "\t\t<ul class='page-list'>\n"; $content .= "\t\t<ul class='page-list'>\n";
foreach($pageindex->{$env->page}->history as $revisionData) foreach(array_reverse($pageindex->{$env->page}->history) as $revisionData)
{ {
// Only display edits for now // Only display edits for now
if($revisionData->type != "edit") if($revisionData->type != "edit")