diff options
author | Molly Miller <sysvinit@users.noreply.github.com> | 2023-06-12 20:46:10 +0200 |
---|---|---|
committer | Molly Miller <sysvinit@users.noreply.github.com> | 2023-06-12 20:48:01 +0200 |
commit | beb59221e733c6b9afe870aefc1c725baebb85cb (patch) | |
tree | c64e04a3bade6803fada58045357abc284802d4a /lib/Travelynx/Controller/Static.pm | |
parent | 0516344ac09214ca8dde0fe0d9fa7b7832213ef0 (diff) |
Add app version to default stashed values.1.32.4
This means that the version no longer needs to be passed to every version
manually, and is automatically populated in templates where the parameter is
not explicitly provided.
Diffstat (limited to 'lib/Travelynx/Controller/Static.pm')
-rw-r--r-- | lib/Travelynx/Controller/Static.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm index b5f6d89..0f4b8bd 100644 --- a/lib/Travelynx/Controller/Static.pm +++ b/lib/Travelynx/Controller/Static.pm @@ -8,15 +8,13 @@ use Mojo::Base 'Mojolicious::Controller'; sub about { my ($self) = @_; - $self->render( 'about', - version => $self->app->config->{version} // 'UNKNOWN' ); + $self->render('about'); } sub changelog { my ($self) = @_; - $self->render( 'changelog', - version => $self->app->config->{version} // 'UNKNOWN' ); + $self->render('changelog'); } sub imprint { |