+++ /dev/null
-% if ( $cgi->param('alert') ) {
- <FONT SIZE="+1" COLOR="#008000"><% mt($cgi->param('alert')) |h %></FONT>
- <BR><BR>
-% }
\ No newline at end of file
% if ( $error ) {
% $cgi->param('error', $error);
-<% $cgi->redirect(popurl(1). "pref.html?". $cgi->query_string ) %>
+ <% $cgi->redirect(popurl(1). "pref.html?". $cgi->query_string ) %>
% } else {
-<% include('/elements/header.html', mt('Preferences updated')) %>
-<% include('/elements/footer.html') %>
-<% $cgi->redirect(popurl(1). "pref.html?alert=Preferences updated" ) %>
+ <% $cgi->redirect( -uri => popurl(1). "pref.html",
+ -cookie => CGI::Cookie->new(
+ -name => 'freeside_status',
+ -value => mt('Preferences updated'),
+ -expires => '+5m',
+ ),
+ )
+ %>
% }
<%init>
<& /elements/error.html &>
-<& /elements/alert.html &>
-
% if ( FS::Auth->auth_class->can('change_password') ) {
<FONT CLASS="fsinnerbox-title"><% emt('Change password (leave blank for no change)') %></FONT>