summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-12-10 21:10:43 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-12-10 21:10:43 +0100
commit9eeb4a9984c24371dba730776094b838bbf73d3c (patch)
treed0d3ee43482ee7c52d1ea0090cf836f3ddc59587 /lib/Travel/Status/DE
parent428260ae447d6cf12561ddf74f2eea332e620ade (diff)
Services.pm.PL: support 'version' rather than 'ver' HCI Core version as well
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Services.pm.PL3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Services.pm.PL b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
index 3ceee61..f1bb2df 100644
--- a/lib/Travel/Status/DE/HAFAS/Services.pm.PL
+++ b/lib/Travel/Status/DE/HAFAS/Services.pm.PL
@@ -68,6 +68,9 @@ sub load_instance {
if ( $data->{options}{ver} ) {
$ret{request}{ver} = $data->{options}{ver};
}
+ elsif ( $data->{options}{version} ) {
+ $ret{request}{ver} = $data->{options}{version};
+ }
if ( $opt{lang} ) {
$ret{request}{lang} = $opt{lang};