summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;
}