bernd commited on 2007-12-01 13:59:17
Zeige 1 geänderte Dateien mit 4 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@825 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -156,8 +156,11 @@ function html_form($form_id, $scriptname, $querystring, $content) |
| 156 | 156 |
if ($debugmode) |
| 157 | 157 |
$debugstr = 'debug&'; |
| 158 | 158 |
$querystring = str_replace('&', '&', $querystring);
|
| 159 |
+ $qmark = '?'; |
|
| 160 |
+ if ($debugstr == '' && $querystring == '') |
|
| 161 |
+ $qmark = ''; |
|
| 159 | 162 |
$ret = ''; |
| 160 |
- $ret .= '<form action="'.$scriptname.'?'.$debugstr.$querystring.'" method="post">'."\n"; |
|
| 163 |
+ $ret .= '<form action="'.$scriptname.$qmark.$debugstr.$querystring.'" method="post">'."\n"; |
|
| 161 | 164 |
$ret .= '<p style="display: none;"><input type="hidden" name="formtoken" value="'.generate_form_token($form_id).'" /></p>'."\n"; |
| 162 | 165 |
$ret .= $content; |
| 163 | 166 |
$ret .= '</form>'; |
| 164 | 167 |