From 22e68399a89c5b0e1f771e5e16e0f9c0360f51c3 Mon Sep 17 00:00:00 2001 From: flammy <flamabelde@yahoo.de> Date: Thu, 14 Jul 2016 00:47:48 +0200 Subject: [PATCH] Added file-in-use reference to media-manager Added a reference to the media-manager where you can see on which pages the file is used. This change contains the same code as in #321 but for the media-manager. It was proposed in https://forum.dokuwiki.org/thread/13784 --- inc/media.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/media.php b/inc/media.php index e103bdf04..4f543f4f7 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1162,6 +1162,18 @@ function media_details($image, $auth, $rev='', $meta=false) { } } echo '</dl>'.NL; + echo '<dl>'.NL; + echo '<dt>'.$lang['reference'].':</dt>'; + $media_usage = ft_mediause($image,true); + if(count($media_usage) > 0){ + foreach($media_usage as $path){ + echo '<dd>'.html_wikilink($path).'</dd>'; + } + }else{ + echo '<dd>'.$lang['nothingfound'].'</dd>'; + } + echo '</dl>'.NL; + } /** -- GitLab