]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Generic.pm
Fix undef warning
[gruntmaster-page.git] / lib / Gruntmaster / Page / Generic.pm
index e0eb290edc86991394206ecf67d0971f30b33a5a..317fc6a6a2e35d3599d30e8ed5a2fbc844b299b8 100644 (file)
@@ -169,11 +169,12 @@ thing {
                $_->{problem_name} = $_->{rs}->problem->name;
                $_->{size} = length $_->{source};
                delete $_->{source};
-               $_->{pageprefix} = $env->{'gruntmaster.page'} == -1 ? 'page/' : '';
+               $_->{pageprefix} = $env->{'gruntmaster.page'} && $env->{'gruntmaster.page'} == -1 ? 'page/' : '';
        }
 };
 
 putsym 'Gruntmaster::Page::Pb::Entry::vary',    sub { 'Authorization' };
 putsym 'Gruntmaster::Page::Pb::Entry::max_age', sub { 600 };
+putsym 'Gruntmaster::Page::Log::max_age', sub { 10 };
 
 1
This page took 0.022576 seconds and 4 git commands to generate.