summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-04-20 01:09:09 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2013-04-24 11:05:51 +0200
commitcf083cf9ba1c5f38e253edd409c7fd459e879690 (patch)
tree3176ee8f8209412aa2d4283e2838d09b2bde0bfe /web
parentca067d5492c72e2e034b14d294565881f0167a1f (diff)
downloadaur-cf083cf9ba1c5f38e253edd409c7fd459e879690.tar.gz
aur-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>
Diffstat (limited to 'web')
-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 50d376f7..4af30436 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 28f9f937..1deeac59 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