summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorMolly Miller <sysvinit@users.noreply.github.com>2023-06-12 20:46:10 +0200
committerMolly Miller <sysvinit@users.noreply.github.com>2023-06-12 20:48:01 +0200
commitbeb59221e733c6b9afe870aefc1c725baebb85cb (patch)
treec64e04a3bade6803fada58045357abc284802d4a /lib/Travelynx.pm
parent0516344ac09214ca8dde0fe0d9fa7b7832213ef0 (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.pm')
-rwxr-xr-xlib/Travelynx.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 0f602fe..64f721c 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -72,6 +72,7 @@ sub startup {
}
chomp $self->config->{version};
+ $self->defaults(version => $self->config->{version} // 'UNKNOWN');
$self->plugin(
authentication => {