diff options
author | Struan Donald <struan@exo.org.uk> | 2011-09-05 09:38:31 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-09-05 09:38:31 +0100 |
commit | d328f71a4a636c2b5888cd3d3a5d1c04bedfed97 (patch) | |
tree | 475bd1f96982c1ae29c2ecb6786548bf8a1ba273 /perllib/FixMyStreet/App/View/Web.pm | |
parent | 37950c4077bfe9ef2f0b879cb4af74ffae278b47 (diff) | |
parent | b3cda28415c7f0126befd2469e3f1b2331acf166 (diff) |
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r-- | perllib/FixMyStreet/App/View/Web.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm index 2d0fb87d0..43d46ae25 100644 --- a/perllib/FixMyStreet/App/View/Web.pm +++ b/perllib/FixMyStreet/App/View/Web.pm @@ -19,7 +19,7 @@ __PACKAGE__->config( render_die => 1, expose_methods => [ 'loc', 'nget', 'tprintf', 'display_crosssell_advert', 'prettify_epoch', - 'add_links', 'css', + 'add_links', 'version', ], FILTERS => { escape_js => \&escape_js, @@ -165,14 +165,14 @@ sub html_filter { return $text; } -my %css_hash; -sub css { +my %version_hash; +sub version { my ( $self, $c, $file ) = @_; - unless ($css_hash{$file}) { + unless ($version_hash{$file}) { my $path = FixMyStreet->path_to('web', $file); - $css_hash{$file} = ( stat( $path ) )[9]; + $version_hash{$file} = ( stat( $path ) )[9]; } - return "$file?$css_hash{$file}"; + return "$file?$version_hash{$file}"; } 1; |