]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
GEOIP_STANDARD variable is not valid anymore.
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index 6fab7f29fcde410fb1f674a54405c9cd18db8f6b..bc422a6fcd6619b331bb206a45e9951624f6efa8 100644 (file)
@@ -33,7 +33,7 @@ NDWeb::Controller::Root - Root Controller for NDWeb
 sub index : Local Path Args(0) {
        my ( $self, $c ) = @_;
 
-       $c->visit('/wiki/index');
+       $c->visit('/wiki/main');
 }
 
 sub default : Path {
@@ -46,7 +46,7 @@ sub login : Local {
        my ($self, $c) = @_;
 
        if ($c->login){
-               my $gi = Geo::IP->new(GEOIP_STANDARD);
+               my $gi = Geo::IP->new("/usr/share/GeoIP/GeoIP.dat");
                my $country = $gi->country_code_by_addr($c->req->address) || '??';
 
                my $remember = 0;