From 6e37f3d92cd20e04f37d47feb5fde819e056da5e Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 15 Oct 2005 21:18:50 +0200 Subject: [PATCH] insert media with leading colon fixes a bug when a mediafile from the top namespace is referenced in a subnamespace. Thanks to Otto Vainio for reporting darcs-hash:20051015191850-7ad00-b5c2c965b6032b081973e25d02adb2a9408b54de.gz --- inc/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template.php b/inc/template.php index 9d0d3ef9a..b851fc584 100644 --- a/inc/template.php +++ b/inc/template.php @@ -719,7 +719,7 @@ function tpl_mediafilelist(){ ptln('<ul>',2); foreach($data as $item){ ptln('<li>',4); - ptln('<a href="javascript:mediaSelect(\''.$item['id'].'\')">'. + ptln('<a href="javascript:mediaSelect(\':'.$item['id'].'\')">'. utf8_decodeFN($item['file']). '</a>',6); -- GitLab