X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FRoot.pm;h=a7a59de1bc07e08e6f107a9f6df78081f6493fd1;hb=a67b5963638a70309738fab3972408fb6729a52b;hp=3eaaf0d009b254d61892ddc9c8b84eb7de0839d5;hpb=2c934746290ce8baa0b38425e1fd74d63a2a12f5;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 3eaaf0d..a7a59de 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -123,6 +123,11 @@ sub auto : Private { $c->stash(dbh => $dbh); + $c->stash(sslurl => sub { + $_[0]->scheme('https') unless $c->debug; + return $_[0]; + }); + $dbh->do(q{SET timezone = 'GMT'}); $c->stash(TICK =>$dbh->selectrow_array('SELECT tick()',undef));