query => $cgi,
type => "intranet",
authnotrequired => 0,
- flagsrequired => { tools => 1 },
+ flagsrequired => { tools => 'edit_news' },
debug => 1,
}
);
foreach my $language ( @$tlangs ) {
push @lang_list,
{
- language => $language->{'language_code'},
- selected => ( $new_detail->{lang} eq $language->{'language_code'} ? 1 : 0 ),
+ language => $language->{'rfc4646_subtag'},
+ selected => ( $new_detail->{lang} eq $language->{'rfc4646_subtag'} ? 1 : 0 ),
};
}
}
$template->param(
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
+ dateformat => C4::Context->preference("dateformat"),
);
output_html_with_http_headers $cgi, $cookie, $template->output;