use Koha::Config::SysPrefs;
use Koha::Illrequest::Config;
use Koha::SearchEngine::Elasticsearch;
+use Koha::UploadedFiles;
use C4::Members::Statistics;
}
}
-if ( ! defined C4::Context->config('tmp_path') ) {
+if ( ! C4::Context->config('tmp_path') ) {
+ my $temporary_directory = Koha::UploadedFile->temporary_directory;
push @xml_config_warnings, {
- error => 'tmp_path_entry_missing',
- effective_tmp_dir => File::Spec->tmpdir
+ error => 'tmp_path_missing',
+ effective_tmp_dir => $temporary_directory,
}
}
Also note that you need to properly set the OPACBaseURL preference for the file upload plugin to work.
</td>
</tr>
- [% ELSIF config_entry.error == 'tmp_path_entry_missing' %]
+ [% ELSIF config_entry.error == 'tmp_path_missing' %]
<tr>
<th scope="row"><b>Warning</b></th>
<td>You are missing the <tmp_path> entry in your koha-conf.xml file. Please