Bug 36875: Staff counterpart
Same change. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
4c3a6c3910
commit
7c514a8547
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||||
);
|
);
|
||||||
|
|
||||||
my $page_id = $query->param('page_id');
|
my $page_id = $query->param('page_id');
|
||||||
my $lang = $query->param('language');
|
|
||||||
|
|
||||||
my $branch = C4::Context->userenv->{'branch'};
|
my $branch = C4::Context->userenv->{'branch'};
|
||||||
|
|
||||||
|
@ -44,7 +43,8 @@ if ( !$page || $page->category ne 'pages' || $page->branchcode && $page->branchc
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $content = $page->translated_content( $lang || C4::Languages::getlanguage($query) );
|
# Sanitize language via getlanguage
|
||||||
|
my $content = $page->translated_content( C4::Languages::getlanguage($query) );
|
||||||
|
|
||||||
$template->param( page => $content );
|
$template->param( page => $content );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue