diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-13 12:05:09 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-13 12:05:09 +0100 |
commit | a93ff0eb307d1440cb54a8ae258b6d16d4f0c59d (patch) | |
tree | 12ac73c414424e8bceabeb8efdbb862edef4a2ea | |
parent | 201ed9869ccfbdcebe2afd55693c37cf9823f7c3 (diff) |
Comment out code that is ported
-rwxr-xr-x | web/index.cgi | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/web/index.cgi b/web/index.cgi index 00415c8bf..45992d7c5 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -78,26 +78,40 @@ sub main { my $out = ''; my %params; - if ($q->param('submit_problem')) { - $params{title} = _('Submitting your report'); - ($out, %params) = submit_problem($q); - } elsif ($q->param('submit_update')) { + + if (0) { # never run + } + # elsif ( $q->param('submit_problem') ) { + # $params{title} = _('Submitting your report'); + # ( $out, %params ) = submit_problem($q); + # } + elsif ( $q->param('submit_update') ) { $params{title} = _('Submitting your update'); - ($out, %params) = submit_update($q); - } elsif ($q->param('submit_map')) { - ($out, %params) = display_form($q, [], {}); - $params{title} = _('Reporting a problem'); - } elsif ($q->param('id')) { - ($out, %params) = display_problem($q, [], {}); + ( $out, %params ) = submit_update($q); + } + # elsif ( $q->param('submit_map') ) { + # ( $out, %params ) = display_form( $q, [], {} ); + # $params{title} = _('Reporting a problem'); + # } + elsif ( $q->param('id') ) { + ( $out, %params ) = display_problem( $q, [], {} ); $params{title} .= ' - ' . _('Viewing a problem'); - } elsif ($q->param('pc') || ($q->param('x') && $q->param('y')) || ($q->param('lat') || $q->param('lon'))) { - ($out, %params) = display_location($q); - $params{title} = _('Viewing a location'); - } elsif ($q->param('e') && $q->param('n')) { - ($out, %params) = redirect_from_osgb_to_wgs84($q); - } else { - ($out, %params) = front_page($q); } + + # elsif ($q->param('pc') + # || ( $q->param('x') && $q->param('y') ) + # || ( $q->param('lat') || $q->param('lon') ) ) + # { + # ( $out, %params ) = display_location($q); + # $params{title} = _('Viewing a location'); + # } + elsif ( $q->param('e') && $q->param('n') ) { + ( $out, %params ) = redirect_from_osgb_to_wgs84($q); + } + # else { + # ( $out, %params ) = front_page($q); + # } + print Page::header($q, %params); print $out; my %footerparams; |