summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2015-05-16 10:51:32 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2015-05-16 10:51:32 +0200
commit689215716f1a8fc21318a4e032a96a3a592317e7 (patch)
tree4be7b6afe42baffb44654a339b3ed68a28254146 /inc/html.php
parent11aaacbee50790c2d5a2c10e97307da213d6320d (diff)
downloadrpg-689215716f1a8fc21318a4e032a96a3a592317e7.tar.gz
rpg-689215716f1a8fc21318a4e032a96a3a592317e7.tar.bz2
replace deprecated getRevisions call
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php
index 4bf784502..2564c3bd6 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -776,10 +776,16 @@ function html_recent($first=0, $show_changes='both'){
$href = '';
if (!empty($recent['media'])) {
- $diff = (count(getRevisions($recent['id'], 0, 1, 8192, true)) && file_exists(mediaFN($recent['id'])));
+ $changelog = new MediaChangeLog($recent['id']);
+ $revs = $changelog->getRevisions(0, 1);
+ $diff = (count($revs) && file_exists(mediaFN($recent['id'])));
if ($diff) {
- $href = media_managerURL(array('tab_details' => 'history',
- 'mediado' => 'diff', 'image' => $recent['id'], 'ns' => getNS($recent['id'])), '&');
+ $href = media_managerURL(array(
+ 'tab_details' => 'history',
+ 'mediado' => 'diff',
+ 'image' => $recent['id'],
+ 'ns' => getNS($recent['id'])
+ ), '&');
}
} else {
$href = wl($recent['id'],"do=diff", false, '&');