X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FNDWeb.pm;h=2cb66a0038e129e1033d9178f5f3e42d60747c3a;hb=fad7141dbbfb2d235f8cadd98d96cbed9b7c4be6;hp=51c5e7f730b24096cfb3c3a4b73a2f7aed5c1a9e;hpb=c018a7ccbb1fd8bdec5c8f97b151686ae933870b;p=ndwebbie.git diff --git a/lib/NDWeb.pm b/lib/NDWeb.pm index 51c5e7f..2cb66a0 100644 --- a/lib/NDWeb.pm +++ b/lib/NDWeb.pm @@ -13,11 +13,11 @@ use Catalyst::Runtime 5.80; # directory use parent qw/Catalyst/; + use Catalyst qw/ -Debug ConfigLoader Static::Simple - Unicode Authentication Authentication::Store::NDWeb @@ -31,9 +31,6 @@ use Catalyst qw/ Session::Store::File Session::State::Cookie - Compress::Gzip - Compress::Deflate - Cache PageCache /; @@ -47,6 +44,8 @@ sub signal_bots { system 'killall','-USR1', 'ndbot.pl'; } +#$SIG{__WARN__} = sub { NDWeb->log->warn(@_); }; + # Configure the application. # # Note that settings in ndweb.conf (or other external @@ -84,6 +83,7 @@ __PACKAGE__->config( page_cache => { }); __PACKAGE__->config( default_model => 'Model'); +__PACKAGE__->config( encoding => 'UTF-8'); # Start the application __PACKAGE__->setup();