summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-23 14:32:00 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-23 14:32:00 +0100
commitbce3726d4d2a1e56b74b3988f431213119b96e4a (patch)
treeeb52359521e5d384cf8b9a8193d0e1e125396b2d
parent9e54d51a8ebde607c4085bdbad48b04e09e356d8 (diff)
downloadrpg-bce3726d4d2a1e56b74b3988f431213119b96e4a.tar.gz
rpg-bce3726d4d2a1e56b74b3988f431213119b96e4a.tar.bz2
wl(): don't include empty id parameter FS#1138
darcs-hash:20080223133200-7ad00-409ee76b0bb36a1dff7b6f09181692e0742a86fd.gz
-rw-r--r--inc/common.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index d224eae3c..00cde2e92 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -357,9 +357,12 @@ function wl($id='',$more='',$abs=false,$sep='&amp;'){
}elseif($conf['userewrite']){
$xlink .= $id;
if($more) $xlink .= '?'.$more;
- }else{
+ }elseif($id){
$xlink .= DOKU_SCRIPT.'?id='.$id;
if($more) $xlink .= $sep.$more;
+ }else{
+ $xlink .= DOKU_SCRIPT;
+ if($more) $xlink .= '?'.$more;
}
return $xlink;