From cf083cf9ba1c5f38e253edd409c7fd459e879690 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Fri, 19 Apr 2013 19:09:09 -0400 Subject: Remove superfluous search wrapper function The search_accounts_form() wrapper function doesn't have any arguments and only makes it unclear what is happening within account.php Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/account.php | 2 +- web/lib/acctfuncs.inc.php | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'web') diff --git a/web/html/account.php b/web/html/account.php index 50d376f..4af3043 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -88,7 +88,7 @@ if (isset($_COOKIE["AURSID"])) { # display the search page if they're a TU/dev # print __("Use this form to search existing accounts.")."
\n"; - search_accounts_form(); + include('search_accounts_form.php'); } else { print __("You are not allowed to access this area."); diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 28f9f93..1deeac5 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -276,16 +276,6 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", return; } -/** - * Include the search accounts form - * - * @return void - */ -function search_accounts_form() { - include("search_accounts_form.php"); - return; -} - /** * Display the search results page * -- cgit v1.2.3-54-g00ecf