projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8beaa15
)
S:F:B:Webdav.pm Pfad auch ausgeben, damit man weiß, was fehlt
author
Jan Büren
<jan@kivitendo.de>
Tue, 23 Nov 2021 10:01:46 +0000
(11:01 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Tue, 23 Nov 2021 10:01:46 +0000
(11:01 +0100)
Ferner für boolean enabled Rückgabewert direkt von get_doc_webdav ausgeben
SL/File/Backend/Webdav.pm
patch
|
blob
|
history
diff --git
a/SL/File/Backend/Webdav.pm
b/SL/File/Backend/Webdav.pm
index
40e1398
..
0e9525e
100644
(file)
--- 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;
}
#