X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fkoha-news.pl;h=4dd07a9b2535969b324fc7b09b0c1d29b3e9f9c3;hb=08382876306cfda839637c5f72a107b304458a8e;hp=ff4a32f3234b5e87c020ab2381cd3a474d908476;hpb=44201a54e15f06d13c2f40d93bd5a76f6493d7d2;p=koha.git diff --git a/tools/koha-news.pl b/tools/koha-news.pl index ff4a32f323..4dd07a9b25 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -74,11 +74,12 @@ my $op = $cgi->param('op'); if ( $op eq 'add_form' ) { $template->param( add_form => 1 ); if ($id) { + if($new_detail->{lang} eq "slip"){ $template->param( slip => 1); } $template->param( op => 'edit', id => $new_detail->{'idnew'} ); - $template->param($new_detail); + $template->{VARS}->{'new_detail'} = $new_detail; } else { $template->param( op => 'add' ); @@ -117,8 +118,4 @@ else { opac_news_count => $opac_news_count, ); } -$template->param( - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), - dateformat => C4::Context->preference("dateformat"), - ); output_html_with_http_headers $cgi, $cookie, $template->output;