diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-11 20:39:16 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-11 20:39:16 +0200 |
commit | 285957c1de3c6b58757f323b442ac1c93e35205e (patch) | |
tree | de8440fa9853da9f98d04043037c80da63e57fcd /lib/Travel/Status/DE/HAFAS/Services.pm.PL | |
parent | ea4e39d7b5b6eaa2f2a186fce01010ebb3798eec (diff) |
our version takes precedence over transport-apis version
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Services.pm.PL')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Services.pm.PL | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Services.pm.PL b/lib/Travel/Status/DE/HAFAS/Services.pm.PL index ae6a754..20de534 100644 --- a/lib/Travel/Status/DE/HAFAS/Services.pm.PL +++ b/lib/Travel/Status/DE/HAFAS/Services.pm.PL @@ -53,13 +53,6 @@ sub load_instance { } } - if ( $opt{lang} ) { - $ret{request}{lang} = $opt{lang}; - } - if ( $opt{ver} ) { - $ret{request}{ver} = $opt{ver}; - } - if ( $data->{options}{ext} ) { $ret{request}{ext} = $data->{options}{ext}; } @@ -67,6 +60,13 @@ sub load_instance { $ret{request}{ver} = $data->{options}{ver}; } + if ( $opt{lang} ) { + $ret{request}{lang} = $opt{lang}; + } + if ( $opt{ver} ) { + $ret{request}{ver} = $opt{ver}; + } + return %ret; } |