diff options
author | andi <andi@splitbrain.org> | 2005-04-29 22:53:20 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-29 22:53:20 +0200 |
commit | 6c7843b5addbca9ae2dc1d9d19be8d67663eb8e5 (patch) | |
tree | a9a3f0f481e32f2ce5cb3b256b25b5f482b0b777 /inc/html.php | |
parent | 093ec9e4fcc037744441b83e6ab1a7193c258f96 (diff) | |
download | rpg-6c7843b5addbca9ae2dc1d9d19be8d67663eb8e5.tar.gz rpg-6c7843b5addbca9ae2dc1d9d19be8d67663eb8e5.tar.bz2 |
added internal rewriting
darcs-hash:20050429205320-9977f-6bf54f3b022104a0a9aefa882dfba09a98bc9c2a.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/inc/html.php b/inc/html.php index 7e60cad34..3f6306dc1 100644 --- a/inc/html.php +++ b/inc/html.php @@ -186,14 +186,16 @@ function html_btn($name,$id,$akey,$params,$method='get'){ //filter id (without urlencoding) $id = idfilter($id,false); - //make nice URLs even for buttons - if(!$conf['userewrite']){ + //make nice URLs even for buttons + if($conf['userewrite'] == 2){ + $script = DOKU_BASE.DOKU_SCRIPT.'/'.$id; + }elseif($conf['userewrite']){ + $script = DOKU_BASE.$id; + }else{ $script = DOKU_BASE.DOKU_SCRIPT; $params['id'] = $id; - }else{ - $script = DOKU_BASE.$id; } - + $ret .= '<form class="button" method="'.$method.'" action="'.$script.'" onsubmit="return svchk()">'; reset($params); |