From 8fa22ab8c145eea28132f24500b2af3b7853c450 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 23 Nov 2021 11:01:46 +0100 Subject: [PATCH] =?utf8?q?S:F:B:Webdav.pm=20Pfad=20auch=20ausgeben,=20dami?= =?utf8?q?t=20man=20wei=C3=9F,=20was=20fehlt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ferner für boolean enabled Rückgabewert direkt von get_doc_webdav ausgeben --- SL/File/Backend/Webdav.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SL/File/Backend/Webdav.pm b/SL/File/Backend/Webdav.pm index 40e1398e2..0e9525e05 100644 --- a/SL/File/Backend/Webdav.pm +++ b/SL/File/Backend/Webdav.pm @@ -84,7 +84,7 @@ sub get_filepath { my ($self, %params) = @_; die "no dbfile" unless $params{dbfile}; my ($path, undef, undef) = $self->webdav_path($params{dbfile}); - die "no file" if !-f $path; + die "Path not found: " . $path unless -f $path; return $path; } @@ -105,8 +105,7 @@ sub sync_from_backend { } sub enabled { - return 0 unless $::instance_conf->get_doc_webdav; - return 1; + return $::instance_conf->get_doc_webdav; } # -- 2.20.1