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:
Marcel de Rooy 2024-05-16 07:33:41 +00:00 committed by Katrin Fischer
parent 4c3a6c3910
commit 7c514a8547
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -33,7 +33,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
);
my $page_id = $query->param('page_id');
my $lang = $query->param('language');
my $branch = C4::Context->userenv->{'branch'};
@ -44,7 +43,8 @@ if ( !$page || $page->category ne 'pages' || $page->branchcode && $page->branchc
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 );