Changeset 472 for trunk/preferences.cgi

Show
Ignore:
Timestamp:
09/16/04 14:31:21 (4 years ago)
Author:
kake
Message:

Add expiry option to prefs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/preferences.cgi

    r414 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    );