use C4::Auth;
use C4::Output;
-use C4::Interface::CGI::Output;
-use C4::Database;
-use HTML::Template;
+
+
use C4::Calendar;
my $input = new CGI;
my $calendar = C4::Calendar->new(branchcode => $branchcode);
+$title || ($title = '');
+if ($description) {
+ $description =~ s/\r/\\r/g;
+ $description =~ s/\n/\\n/g;
+} else {
+ $description = '';
+}
+
if ($input->param('showOperation') eq 'exception') {
$calendar->insert_exception_holiday(day => $day,
month => $month,