summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 20:41:09 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-15 20:41:09 +0100
commit2e608c527514d5fb03eb88c8da1c101f231d5736 (patch)
tree4fd14dc47249c20c8f25e37fc5495b8aabd8995c
parent7f92538e7173852561b0396626dd35783550ed92 (diff)
downloadrpg-2e608c527514d5fb03eb88c8da1c101f231d5736.tar.gz
rpg-2e608c527514d5fb03eb88c8da1c101f231d5736.tar.bz2
reverse revisions display order
-rw-r--r--inc/changelog.php2
-rw-r--r--inc/html.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/inc/changelog.php b/inc/changelog.php
index dfcd1f241..d2ad23c08 100644
--- a/inc/changelog.php
+++ b/inc/changelog.php
@@ -689,7 +689,7 @@ abstract class ChangeLog {
$revs1 = array_slice($revs1, max($index - floor($max/2), 0), $max);
}
- return array($revs1, $revs2);
+ return array(array_reverse($revs1), array_reverse($revs2));
}
/**
diff --git a/inc/html.php b/inc/html.php
index ce5da488b..3cce6ceab 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1225,11 +1225,11 @@ function html_diff($text='',$intro=true,$type=null){
}
$l_index = array_search($l_rev, $l_revs);
- $l_prev = $l_revs[$l_index - 1];
- $l_next = $l_revs[$l_index + 1];
+ $l_prev = $l_revs[$l_index + 1];
+ $l_next = $l_revs[$l_index - 1];
$r_index = array_search($r_rev, $r_revs);
- $r_prev = $r_revs[$r_index - 1];
- $r_next = $r_revs[$r_index + 1];
+ $r_prev = $r_revs[$r_index + 1];
+ $r_next = $r_revs[$r_index - 1];
if($l_prev) {
html_diff_navigationlink($type, '←← ', $l_prev, $r_prev);