Bug 9108: Followup: send the dateformat value from C4::Auth
[koha.git] / tools / koha-news.pl
index 2451934..4dd07a9 100755 (executable)
@@ -79,7 +79,7 @@ if ( $op eq 'add_form' ) {
             op => 'edit',
             id => $new_detail->{'idnew'}
         );
-        $template->param($new_detail);
+        $template->{VARS}->{'new_detail'} = $new_detail;
     }
     else {
         $template->param( op => 'add' );
@@ -118,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;