summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/lang/en/lang.php1
-rw-r--r--inc/template.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index 25088a40c..92c7185b2 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -347,6 +347,7 @@ $lang['media_files'] = 'Files in %s';
$lang['media_upload'] = 'Upload to %s';
$lang['media_search'] = 'Search in %s';
$lang['media_view'] = '%s';
+$lang['media_viewold'] = '%s at %s';
$lang['media_edit'] = 'Edit %s';
$lang['media_history'] = 'History of %s';
$lang['media_meta_edited'] = 'metadata edited';
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;