|
Lines 57-62
if ( !$output_directory || !-d $output_directory || !-w $output_directory ) {
Link Here
|
| 57 |
} |
57 |
} |
| 58 |
); |
58 |
); |
| 59 |
} |
59 |
} |
|
|
60 |
my $sys_pref_emails = C4::Context->preference("SendPrintNoticesEmails"); |
| 61 |
if($sys_pref_emails) |
| 62 |
{ |
| 63 |
my @split_pref_emails = split(/,/, $sys_pref_emails); |
| 64 |
my $sys_pref_combine = C4::Context->preference("SendPrintNoticesCombineEmails"); |
| 65 |
if($sys_pref_combine) |
| 66 |
{ |
| 67 |
@emails = (@emails, @split_pref_emails); |
| 68 |
} |
| 69 |
else |
| 70 |
{ |
| 71 |
@emails = @split_pref_emails; |
| 72 |
} |
| 73 |
} |
| 74 |
else |
| 75 |
{ |
| 76 |
cronlogaction({info => "SendPrintNotices system pref ignored because it was null or empty."}); |
| 77 |
} |
| 78 |
|
| 79 |
# uncomment the line below to test the system pref even if you have no files to send |
| 80 |
# say $_ for @emails; |
| 60 |
|
81 |
|
| 61 |
# Default value is html |
82 |
# Default value is html |
| 62 |
$html = 1 if not $html and not $csv and not $ods; |
83 |
$html = 1 if not $html and not $csv and not $ods; |
| 63 |
- |
|
|