Changeset 472 for trunk/preferences.cgi


Ignore:
Timestamp:
Sep 16, 2004, 2:31:21 PM (17 years ago)
Author:
kake
Message:

Add expiry option to prefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences.cgi

    r471 r472  
    3131    my $rc_minor_eds = $cgi->param("show_minor_edits_in_rc") || 0;
    3232    my $edit_type    = $cgi->param("default_edit_type") || "normal";
     33    my $expires      = $cgi->param("cookie_expires") || "month";
    3334    my $cookie = OpenGuides::CGI->make_prefs_cookie(
    3435        config => $config,
     
    4041        show_minor_edits_in_rc => $rc_minor_eds,
    4142        default_edit_type      => $edit_type,
     43        cookie_expires         => $expires,
    4244    );
    4345    print OpenGuides::Template->output(
     
    5557                      show_minor_edits_in_rc => $rc_minor_eds,
    5658                      default_edit_type      => $edit_type,
     59                      cookie_expires         => $expires,
    5760                    }
    5861    );
Note: See TracChangeset for help on using the changeset viewer.