From 9eeb4a9984c24371dba730776094b838bbf73d3c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 10 Dec 2024 21:10:43 +0100 Subject: Services.pm.PL: support 'version' rather than 'ver' HCI Core version as well --- lib/Travel/Status/DE/HAFAS/Services.pm.PL | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Travel/Status') 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}; -- cgit v1.2.3