]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Base.pm
Add register and passwd actions
[gruntmaster-page.git] / lib / Gruntmaster / Page / Base.pm
index 91c2764ffb6209e30a0d0a61c174cce81d212044..bc8e9cec1b176e81c63a37cb903cbf880fdd6206 100644 (file)
@@ -27,8 +27,10 @@ sub import {
        *{"${caller}::TITLE"} = sub () { $title };
        *{"${caller}::debug"} = sub {
                local $Log::Log4perl::caller_depth = $Log::Log4perl::caller_depth + 1;
-               $_[0]->({qw/level debug message/ => $_[1]})
+               $_[0]->{'psgix.logger'}->({qw/level debug message/ => $_[1]})
        };
+       *{"${caller}::reply"} = sub { [200, ['Content-Type' => 'text/plain'], [ @_ ] ] }
+
 }
 
 ##################################################
This page took 0.026092 seconds and 4 git commands to generate.