summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 718fbd125..891c2e143 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1206,7 +1206,11 @@ function tpl_mediaFileDetails($image, $rev){
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$class = 'select mediafile mf_'.$class;
$tabTitle = '<strong class="'.$class.'">'.$image.'</strong>';
- printf($lang['media_' . $opened_tab], $tabTitle);
+ if ($opened_tab === 'view' && $rev) {
+ printf($lang['media_viewold'], $tabTitle, dformat($rev));
+ } else {
+ printf($lang['media_' . $opened_tab], $tabTitle);
+ }
echo '</h3></div>'.NL;
echo '<div class="panelContent">'.NL;