Commit 951581a9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

do template fallback before performing legacy check

parent 6807eba7
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -213,6 +213,10 @@ sub handle_request {
	$self->stash( title      => 'DBF' );
	$self->stash( version    => $dbf_version );

	if ( not( $template ~~ [qw[app infoscreen json multi single text]] ) ) {
		$template = 'app';
	}

	if ( defined $station and $station =~ s{ [.] txt $ }{}x ) {
		$template = 'text';
		$self->param( station => $station );
@@ -240,10 +244,6 @@ sub handle_request {
		$template = 'json';
	}

	if ( not( $template ~~ [qw[app infoscreen json multi single text]] ) ) {
		$template = 'app';
	}

	$self->param( mode => $template );

	if ( not $station ) {