summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-04-19 19:09:09 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2013-04-24 11:05:51 +0200
commitcf083cf9ba1c5f38e253edd409c7fd459e879690 (patch)
tree3176ee8f8209412aa2d4283e2838d09b2bde0bfe
parentca067d5492c72e2e034b14d294565881f0167a1f (diff)
downloadaurweb-cf083cf9ba1c5f38e253edd409c7fd459e879690.tar.xz
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 <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/account.php2
-rw-r--r--web/lib/acctfuncs.inc.php10
2 files changed, 1 insertions, 11 deletions
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.")."<br />\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
@@ -277,16 +277,6 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
}
/**
- * Include the search accounts form
- *
- * @return void
- */
-function search_accounts_form() {
- include("search_accounts_form.php");
- return;
-}
-
-/**
* Display the search results page
*
* @param string $UTYPE User type of the account accessing the form