X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=lib%2FNDWeb.pm;h=63708aaa847df6a96dc7afbad1983d8ab373b5cb;hp=51c5e7f730b24096cfb3c3a4b73a2f7aed5c1a9e;hb=a55dcea9b24ca54ee4a1a992c2d381cb5dde963b;hpb=c018a7ccbb1fd8bdec5c8f97b151686ae933870b diff --git a/lib/NDWeb.pm b/lib/NDWeb.pm index 51c5e7f..63708aa 100644 --- a/lib/NDWeb.pm +++ b/lib/NDWeb.pm @@ -13,11 +13,12 @@ use Catalyst::Runtime 5.80; # directory use parent qw/Catalyst/; + use Catalyst qw/ -Debug ConfigLoader Static::Simple - Unicode + Unicode::Encoding Authentication Authentication::Store::NDWeb @@ -31,9 +32,6 @@ use Catalyst qw/ Session::Store::File Session::State::Cookie - Compress::Gzip - Compress::Deflate - Cache PageCache /; @@ -47,6 +45,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 +84,7 @@ __PACKAGE__->config( page_cache => { }); __PACKAGE__->config( default_model => 'Model'); +__PACKAGE__->config( encoding => 'UTF-8'); # Start the application __PACKAGE__->setup();