summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2006-03-02 14:09:17 +0100
committerAndreas Gohr <gohr@cosmocode.de>2006-03-02 14:09:17 +0100
commit0699afe9e78c6a6186df87378d120dd8816cf26e (patch)
treedd96330e102ff1b0e45e477cbe6c3b012af2cfe3 /inc
parente935fb4a8f253a32fd11d53b3a487de4c8ca310e (diff)
downloadrpg-0699afe9e78c6a6186df87378d120dd8816cf26e.tar.gz
rpg-0699afe9e78c6a6186df87378d120dd8816cf26e.tar.bz2
fix for mediaselection from root namespace #555
darcs-hash:20060302130917-6e07b-4b474a70371aaeb7d97d6c04ff84d77aa1415449.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/template.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/template.php b/inc/template.php
index de307b7f9..71d372d1f 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -700,8 +700,8 @@ function tpl_mediafilelist(){
//prepare deletion button
if($AUTH >= AUTH_DELETE){
- $ask = $lang['del_confirm'].'\\n';
- $ask .= $item['id'];
+ $ask = addslashes($lang['del_confirm']).'\\n';
+ $ask .= addslashes($item['id']);
$del = '<a href="'.DOKU_BASE.'lib/exe/media.php?delete='.rawurlencode($item['id']).'" '.
'onclick="return confirm(\''.$ask.'\')" onkeypress="return confirm(\''.$ask.'\')">'.
@@ -720,7 +720,7 @@ function tpl_mediafilelist(){
ptln('<div class="imagemeta">',6);
//build thumbnail
- print '<a href="javascript:mediaSelect(\''.$item['id'].'\')">';
+ print '<a href="javascript:mediaSelect(\':'.$item['id'].'\')">';
if($w>120 || $h>120){
$ratio = $item['meta']->getResizeRatio(120);