View | Details | Raw Unified | Return to bug 36875
Collapse All | Expand All

(-)a/tools/page.pl (-3 / +2 lines)
Lines 33-39 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
33
);
33
);
34
34
35
my $page_id = $query->param('page_id');
35
my $page_id = $query->param('page_id');
36
my $lang = $query->param('language');
37
36
38
my $branch = C4::Context->userenv->{'branch'};
37
my $branch = C4::Context->userenv->{'branch'};
39
38
Lines 44-50 if ( !$page || $page->category ne 'pages' || $page->branchcode && $page->branchc Link Here
44
    exit;
43
    exit;
45
}
44
}
46
45
47
my $content = $page->translated_content( $lang || C4::Languages::getlanguage($query) );
46
# Sanitize language via getlanguage
47
my $content = $page->translated_content( C4::Languages::getlanguage($query) );
48
48
49
$template->param( page => $content );
49
$template->param( page => $content );
50
50
51
- 

Return to bug 36875