summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2011-09-19 16:07:09 +0200
committerAdrian Lang <mail@adrianlang.de>2011-09-19 16:07:09 +0200
commit0831741370e6589c76c19869e8f11c114a944f0c (patch)
tree56aa505b0178ac0ef92befac91247404f91a52e3 /inc/template.php
parent86e64c1709dfad1edceb5b0b2acdaade3b248d96 (diff)
downloadrpg-0831741370e6589c76c19869e8f11c114a944f0c.tar.gz
rpg-0831741370e6589c76c19869e8f11c114a944f0c.tar.bz2
Add file revision above file detail page
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;