From bd6d9076289cd01ce620f6418e94df9cbc5210e8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 May 2024 07:33:41 +0000 Subject: [PATCH] Bug 36875: Staff counterpart Same change. Signed-off-by: Marcel de Rooy Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize (cherry picked from commit 73423bd894d5365ac491c92c6d5576052e4732f0) Signed-off-by: Fridolin Somers --- tools/page.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/page.pl b/tools/page.pl index d30288a6d0..34d42fd763 100755 --- a/tools/page.pl +++ b/tools/page.pl @@ -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 ); -- 2.39.5