Skip to content

Commit

Permalink
title
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jan 23, 2021
1 parent e2c3856 commit 5efc0cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Perl/Maven.pm
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ hook before_template => sub {

if ( $t->{no_such_article} ) {
$t->{conf}{google_analytics} = 0;
$t->{title} = 'No such article';
}

$t->{pm_version} = in_development() ? time : $PM_VERSION;
Expand Down Expand Up @@ -880,7 +881,7 @@ get '/mail/:article' => sub {
return 'NO path' if not -e $path;

my $tt = read_tt($path);
return pm_template 'error', { 'no_such_article' => 1, title => 'No such article' }
return pm_template 'error', { 'no_such_article' => 1 }
if not $tt->{status}
or $tt->{status} ne 'show';

Expand Down

0 comments on commit 5efc0cd

Please sign in to comment.