summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-08-30 15:08:23 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-08-30 15:08:23 +0200
commitb166ccbc5371b578dd76203b075b0e763bf9da4b (patch)
tree1aee210b138c86fcebe3225d81f802a2f3737acc /inc/media.php
parentc182313eb4e1146476bd73b7fbb9fdf66266a69f (diff)
downloadrpg-b166ccbc5371b578dd76203b075b0e763bf9da4b.tar.gz
rpg-b166ccbc5371b578dd76203b075b0e763bf9da4b.tar.bz2
do not prepend colon via javascript in media manager
Ignore-this: 67ae7589474461a1279720865f0d18b9 Just moves the prepending of the colon (for absolute namespaces) from the javascript to the PHP backend code - makes reusing the javascript for non local files easier. darcs-hash:20090830130823-7ad00-2b53e48edd8e117ac3f7814c50ea429e06284809.gz
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/media.php b/inc/media.php
index 0a8eb0140..1d584db70 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -537,7 +537,7 @@ function media_printfile($item,$auth,$jump){
// ouput
echo '<div class="'.$zebra.'"'.$jump.'>'.NL;
- echo '<a name="h_'.$item['id'].'" class="'.$class.'">'.$file.'</a> ';
+ 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_'.str_replace(':','_',$item['id']).'">';
@@ -571,7 +571,7 @@ function media_printimgdetail($item){
// output
echo '<div class="detail">';
echo '<div class="thumb">';
- echo '<a name="d_'.$item['id'].'" class="select">';
+ echo '<a name="d_:'.$item['id'].'" class="select">';
echo '<img src="'.$src.'" '.$att.' />';
echo '</a>';
echo '</div>';