Unverified Commit becf8567 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #427 from ikedas/6.2.36_css_cant_be_updated by ikedas

CSS cannot be updated if css.tt2 was older than previously generated CSS.
parents b62b09ff d74b70bb
......@@ -790,7 +790,7 @@ sub _get_css_url {
} elsif (
(exists $hash{$lang || '_main'})
? ($hash{$lang || '_main'} eq $hash)
: ($template_mtime < Sympa::Tools::File::get_mtime($path))
: ($template_mtime == Sympa::Tools::File::get_mtime($path))
) {
return ($url, $hash);
}
......@@ -894,6 +894,8 @@ sub _get_css_url {
return;
}
# Set mtime of source template to detect update of it.
utime $template_mtime, $template_mtime, $path;
return ($url, $hash);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment