summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorGuy Brand <gb@unistra.fr>2012-03-07 20:19:29 +0100
committerGuy Brand <gb@unistra.fr>2012-03-07 20:19:29 +0100
commit7980e1acf1a671646747e5b924f2c8e208280a2e (patch)
treee6dcd961bf49528837af27d0ace5f8d90e88c825 /inc/template.php
parentd51d5583294017b72fa7ba2f709ec14961b1bc41 (diff)
downloadrpg-7980e1acf1a671646747e5b924f2c8e208280a2e.tar.gz
rpg-7980e1acf1a671646747e5b924f2c8e208280a2e.tar.bz2
Add link to view non images files in media manager (FS#2439)
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index c23fd14c1..d9a2042ad 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1232,7 +1232,7 @@ function tpl_mediaFileDetails($image, $rev){
list($ext,$mime,$dl) = mimetype($image,false);
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$class = 'select mediafile mf_'.$class;
- $tabTitle = '<strong class="'.$class.'">'.$image.'</strong>';
+ $tabTitle = '<strong class="'.$class.'"><a href="'.ml($image).'" title="'.$lang['mediaview'].'">'.$image.'</a>'.'</strong>';
if ($opened_tab === 'view' && $rev) {
printf($lang['media_viewold'], $tabTitle, dformat($rev));
} else {