diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lang/en/lang.php | 2 | ||||
-rw-r--r-- | inc/media.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index 7d067ee25..84fde9c28 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -104,7 +104,7 @@ $lang['namespaces'] = 'Namespaces'; $lang['mediafiles'] = 'Available files in'; $lang['js']['keepopen'] = 'Keep window open on selection'; -$lang['js']['idtouse'] = 'Please use the following ID to reference this file:'; +$lang['mediausage'] = 'Use the following syntax to reference this file:'; $lang['reference'] = 'References for'; $lang['ref_inuse'] = 'The file can\'t be deleted, because it\'s still used by the following pages:'; diff --git a/inc/media.php b/inc/media.php index 39f76e311..f09aff2eb 100644 --- a/inc/media.php +++ b/inc/media.php @@ -295,6 +295,8 @@ function media_fileactions($item,$auth){ * Formats and prints one file in the list */ function media_printfile($item,$auth,$jump){ + global $lang; + // Prepare zebra coloring // I always wanted to use this variable name :-D static $twibble = 1; @@ -331,6 +333,9 @@ function media_printfile($item,$auth,$jump){ echo '<a name="h_'.$item['id'].'" class="'.$class.'">'.$file.'</a> '; echo '<span class="info">('.$info.')</span>'.NL; media_fileactions($item,$auth); + echo '<div class="example" id="ex_'.$item['id'].'">'; + echo $lang['mediausage'].' <code>{{:'.$item['id'].'}}<code>'; + echo '</div>'; if($item['isimg']) media_printimgdetail($item); echo '<div class="clearer"></div>'.NL; echo '</div>'.NL; |