Upload creates its own upload folder in the temp folder, so there is no
need to add another level in temporary_directory.
Removing the creation of this folder in koha-create-dirs too.
Also removing the use Koha::UploadedFiles in about.pl. No longer needed.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
sub temporary_directory {
my ( $class ) = @_;
- my $temporary_directory = ( C4::Context->config('tmp_path') )
- ? C4::Context->config('tmp_path') . '/uploads'
- : File::Spec->tmpdir;
- return $temporary_directory;
+ return C4::Context->config('tmp_path') || File::Spec->tmpdir;
}
=head3 _type
use Koha::Config::SysPrefs;
use Koha::Illrequest::Config;
use Koha::SearchEngine::Elasticsearch;
-use Koha::UploadedFiles;
use C4::Members::Statistics;
userdir "$name" "/var/lib/koha/$name/plugins"
userdir "$name" "/var/lib/koha/$name/uploads"
userdir "$name" "/var/lib/koha/$name/tmp"
- userdir "$name" "/var/lib/koha/$name/tmp/uploads"
userdir "$name" "/var/lock/koha/$name"
userdir "$name" "/var/lock/koha/$name/authorities"
userdir "$name" "/var/lock/koha/$name/biblios"