|
Lines 35-41
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
| 35 |
); |
35 |
); |
| 36 |
|
36 |
|
| 37 |
my $page_id = $query->param('page_id'); |
37 |
my $page_id = $query->param('page_id'); |
| 38 |
my $lang = $query->param('language'); |
|
|
| 39 |
|
38 |
|
| 40 |
my $homebranch = $ENV{OPAC_BRANCH_DEFAULT}; |
39 |
my $homebranch = $ENV{OPAC_BRANCH_DEFAULT}; |
| 41 |
if (C4::Context->userenv) { |
40 |
if (C4::Context->userenv) { |
|
Lines 49-55
if ( !$page || $page->category ne 'pages' || $page->branchcode && $page->branchc
Link Here
|
| 49 |
exit; |
48 |
exit; |
| 50 |
} |
49 |
} |
| 51 |
|
50 |
|
| 52 |
my $content = $page->translated_content( $lang || C4::Languages::getlanguage($query) ); |
51 |
# Sanitize $query->param('language') via getlanguage |
|
|
52 |
my $content = $page->translated_content( C4::Languages::getlanguage($query) ); |
| 53 |
|
53 |
|
| 54 |
$template->param( page => $content ); |
54 |
$template->param( page => $content ); |
| 55 |
|
55 |
|
| 56 |
- |
|
|