]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Fixed a memory leak.
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index d337a297ead91a306a7f7acda5a4b138a106b08d..7d5bf1ca2a32e5f422b51ce69824afe4fa572b6d 100644 (file)
@@ -119,16 +119,17 @@ sub listAlliances : Private {
        $c->stash(alliances => \@alliances);
 }
 
+sub sslurl {
+       return $_[0];
+}
+
 sub auto : Private {
        my ($self, $c) = @_;
        my $dbh = $c ->model;
 
        $c->stash(dbh => $dbh);
 
-       $c->stash(sslurl => sub {
-                       $_[0]->scheme('https') unless $c->debug;
-                       return $_[0];
-               });
+       $c->stash(sslurl => \&sslurl);
 
        $dbh->do(q{SET timezone = 'GMT'});