Skip to content

Commit d0eaed7

Browse files
committed
Fix order of revisions and dependency
On v1.2.11 some functions used to fetch revisions were changed and the order of the result was inverted. Since this was only a minor change, the support for previous versions was dropped and this became the base version.
1 parent e2c8748 commit d0eaed7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

IssuesDiff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public function register() {
1616
$this->description = plugin_lang_get("description");
1717
$this->page = '';
1818

19-
$this->version = "0.1";
19+
$this->version = "1.0";
2020
$this->requires = array(
21-
"MantisCore" => "1.2.9",
21+
"MantisCore" => "1.2.11",
2222
);
2323

2424
$this->author = "Samir Aguiar";

pages/bug_revision_diff_page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
else if ($f_bugnote_id) {
4444
$t_bug_id = bugnote_get_field($f_bugnote_id, 'bug_id');
4545
$t_bug_data = bug_get($t_bug_id, true);
46-
$t_bug_revisions = array_reverse(bug_revision_list($t_bug_id, REV_ANY, $f_bugnote_id) , true);
46+
$t_bug_revisions = bug_revision_list($t_bug_id, REV_ANY, $f_bugnote_id);
4747
$t_title = lang_get('bugnote') . ' ' . $f_bugnote_id;
4848
}
4949
else if ($f_rev_id) {
50-
$t_bug_revisions = array_reverse(bug_revision_like($f_rev_id) , true);
50+
$t_bug_revisions = bug_revision_like($f_rev_id);
5151

5252
if (count($t_bug_revisions) < 1) {
5353
trigger_error(ERROR_GENERIC, ERROR);

0 commit comments

Comments
 (0)