diff options
author | Anika Henke <anika@selfthinker.org> | 2012-01-22 16:39:01 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-01-22 16:39:01 +0000 |
commit | 59f3611b2f11fe1652befff8189787a1181a2f66 (patch) | |
tree | ad57e861edf5677dc35455b8e935530828541284 /inc/media.php | |
parent | e96b69da63a04f9397c4a7d03253207f6ccff056 (diff) | |
download | rpg-59f3611b2f11fe1652befff8189787a1181a2f66.tar.gz rpg-59f3611b2f11fe1652befff8189787a1181a2f66.tar.bz2 |
removed 'view original' button from new media manager again (was added in b8a84c03) and made a link around the image instead, as that is a more minor change (as it should be during the RC phase) and is what was originally planned
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/media.php b/inc/media.php index 8ff0a7d14..c53e1f5fc 100644 --- a/inc/media.php +++ b/inc/media.php @@ -832,6 +832,7 @@ function media_preview($image, $auth, $rev=false, $meta=false) { $size = media_image_preview_size($image, $rev, $meta); if ($size) { + global $lang; echo '<div class="image">'; $more = array(); @@ -845,7 +846,10 @@ function media_preview($image, $auth, $rev=false, $meta=false) { $more['w'] = $size[0]; $more['h'] = $size[1]; $src = ml($image, $more); + + echo '<a href="'.$src.'" target="_blank" title="'.$lang['mediaview'].'">'; echo '<img src="'.$src.'" alt="" style="max-width: '.$size[0].'px;" />'; + echo '</a>'; echo '</div>'.NL; } |