[aur-dev] [PATCH] Remove superfluous search wrapper function
canyonknight
canyonknight at gmail.com
Fri Apr 19 19:09:09 EDT 2013
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 at gmail.com>
---
web/html/account.php | 2 +-
web/lib/acctfuncs.inc.php | 10 ----------
2 files changed, 1 insertion(+), 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
--
1.8.2.1
More information about the aur-dev
mailing list