Skip to content

Commit

Permalink
Merge pull request #1636 from flammy/patch-1
Browse files Browse the repository at this point in the history
Added file-in-use reference to media-manager
  • Loading branch information
splitbrain committed Nov 30, 2016
2 parents eafdbae + 22e6839 commit 9cc93f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inc/media.php
Expand Up @@ -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;

}

/**
Expand Down

0 comments on commit 9cc93f5

Please sign in to comment.