Changeset 171 for trunk/preferences.cgi


Ignore:
Timestamp:
May 24, 2003, 2:14:32 PM (19 years ago)
Author:
kake
Message:

Added preferences option of displaying lat/long as deg-min-sec instead of decimal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences.cgi

    r170 r171  
    2222
    2323sub set_preferences {
    24     my $username  = $cgi->param("username") || "";
    25     my $gc_link   = $cgi->param('include_geocache_link') || 0;
    26     my $pre_above = $cgi->param('preview_above_edit_box') || 0;
     24    my $username     = $cgi->param("username") || "";
     25    my $gc_link      = $cgi->param("include_geocache_link")  || 0;
     26    my $pre_above    = $cgi->param("preview_above_edit_box") || 0;
     27    my $latlong_trad = $cgi->param("latlong_traditional")    || 0;
    2728    my $cookie = OpenGuides::CGI->make_prefs_cookie(
    2829        config => $config,
    2930        username => $username,
    3031        include_geocache_link => $gc_link,
    31         preview_above_edit_box => $pre_above
     32        preview_above_edit_box => $pre_above,
     33        latlong_traditional => $latlong_trad
    3234    );
    3335    print OpenGuides::Template->output(
     
    3941                      username               => $username,
    4042                      include_geocache_link  => $gc_link,
    41                       preview_above_edit_box => $pre_above
     43                      preview_above_edit_box => $pre_above,
     44                      latlong_traditional    => $latlong_trad
    4245                    }
    4346    );
Note: See TracChangeset for help on using the changeset viewer.