X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog%2FEntry.pm;h=e849876d2a67a32f9abe138457c63d4242e652a8;hb=6d28cb383168de84cebad84aa43900844341bf5d;hp=4b7a70df732b645b4622988941d8278d9c53a5e9;hpb=fe78f0c128c35e68e65850b02057997bad6717fe;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Log/Entry.pm b/lib/Gruntmaster/Page/Log/Entry.pm index 4b7a70d..e849876 100644 --- a/lib/Gruntmaster/Page/Log/Entry.pm +++ b/lib/Gruntmaster/Page/Log/Entry.pm @@ -14,7 +14,7 @@ use HTML::Template::Compiled; use IO::File; use POSIX qw/strftime/; use YAML::Any qw/LoadFile/; -use Gruntmaster::Page qw/header footer/; +use Gruntmaster::Page::Common qw/header footer/; my %templates = ( en => <<'HTML', @@ -33,7 +33,7 @@ $templates{$_} .= footer $_ for keys %templates; sub generate{ my ($path, $lang) = @_; - $id = ($path =~ m,log/(.*)/index,)[0]; + my $id = ($path =~ m,log/(.*)/index,)[0]; $path =~ s,/index\.html,,; my $template = $templates{$lang};