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

(-)a/opac/opac-main.pl (-4 / +5 lines)
Lines 64-74 elsif (C4::Context->userenv and defined $input->param('branch') and length $inpu Link Here
64
}
64
}
65
65
66
my $news_id = $input->param('news_id');
66
my $news_id = $input->param('news_id');
67
my (@all_koha_news, $koha_news_count);
67
my @all_koha_news;
68
68
69
if (defined $news_id){
69
if (defined $news_id){
70
    @all_koha_news = Koha::News->search({ idnew => $news_id });
70
    @all_koha_news = Koha::News->search({
71
    $koha_news_count = 1;
71
        idnew => $news_id,
72
        lang  => $news_lang,
73
    });
72
    if (scalar @all_koha_news > 0){
74
    if (scalar @all_koha_news > 0){
73
        $template->param( news_item => @all_koha_news );
75
        $template->param( news_item => @all_koha_news );
74
    } else {
76
    } else {
75
- 

Return to bug 14272