summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-11 20:39:16 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-11 20:39:16 +0200
commit285957c1de3c6b58757f323b442ac1c93e35205e (patch)
treede8440fa9853da9f98d04043037c80da63e57fcd /lib
parentea4e39d7b5b6eaa2f2a186fce01010ebb3798eec (diff)
our version takes precedence over transport-apis version
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Services.pm.PL14
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;
}