Lines 169-175
$sftp->setcwd($upload_dir)
Link Here
|
169 |
# If the --email parameter is defined then prepare sending an email confirming the success |
169 |
# If the --email parameter is defined then prepare sending an email confirming the success |
170 |
# or failure of the SFTP |
170 |
# or failure of the SFTP |
171 |
if ($email) { |
171 |
if ($email) { |
172 |
if ( C4::Context->preference('KohaAdminEmailAddress') ) { |
172 |
if ( C4::Context->preference('ReplytoDefault') ) { |
|
|
173 |
$admin_address = C4::Context->preference('ReplytoDefault'); |
174 |
} elsif ( C4::Context->preference('KohaAdminEmailAddress') ) { |
173 |
$admin_address = C4::Context->preference('KohaAdminEmailAddress'); |
175 |
$admin_address = C4::Context->preference('KohaAdminEmailAddress'); |
174 |
} |
176 |
} |
175 |
|
177 |
|
176 |
- |
|
|