summaryrefslogtreecommitdiff
path: root/httemplate/pref
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/pref')
-rw-r--r--httemplate/pref/pref-process.html3
-rw-r--r--httemplate/pref/pref.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html
index 6b94f7175..242e12294 100644
--- a/httemplate/pref/pref-process.html
+++ b/httemplate/pref/pref-process.html
@@ -20,7 +20,8 @@ if ( grep { $cgi->param($_) !~ /^\s*$/ }
) {
$access_user = qsearchs( 'access_user', {
- 'username' => getotaker,
+ 'usernum' => $FS::CurrentUser::CurrentUser->usernum,
+ 'username' => $FS::CurrentUser::CurrentUser->username,
'_password' => scalar($cgi->param('_password')),
} );
diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html
index 5babb0181..9861c3f85 100644
--- a/httemplate/pref/pref.html
+++ b/httemplate/pref/pref.html
@@ -1,4 +1,4 @@
-<% include('/elements/header.html', 'Preferences for '. getotaker ) %>
+<% include('/elements/header.html', 'Preferences for '. $FS::CurrentUser::CurrentUser->username ) %>
<FORM METHOD="POST" NAME="pref_form" ACTION="pref-process.html">