summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php
index 00de7ad67..bb2a52352 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -95,7 +95,6 @@ function tpl_content(){
html_login();
break;
case 'register':
- #FIXME check for $conf['openregister']) needs to be done first!!
html_register();
break;
default:
@@ -104,7 +103,6 @@ function tpl_content(){
}
-
/**
* Print the correct HTML meta headers
*
@@ -223,12 +221,11 @@ function tpl_button($type){
/**
* Print the search form
*
- * @todo svcheck missing
* @author Andreas Gohr <andi@splitbrain.org>
*/
function tpl_searchform(){
global $lang;
- print '<form action="'.wl().'" accept-charset="utf-8" class="search">';
+ print '<form action="'.wl().'" accept-charset="utf-8" class="search" onsubmit="return svchk()">';
print '<input type="hidden" name="do" value="search" />';
print '<input type="text" accesskey="f" name="id" class="edit" />';
print '<input type="submit" value="'.$lang['btn_search'].'" class="button" />';