mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Allow transfer_xml direct file paths in pluginTools
This commit is contained in:
parent
13b517718f
commit
7275bdd061
@ -792,6 +792,7 @@ sub transfer_xml {
|
|||||||
my $file_name;
|
my $file_name;
|
||||||
my $file_path;
|
my $file_path;
|
||||||
|
|
||||||
|
if (! -f $xml) {
|
||||||
if (! (empty ($name))) {
|
if (! (empty ($name))) {
|
||||||
$file_name = $name . "." . sprintf("%d",getCurrentUTimeMilis(). (rand()*10000)) . ".data";
|
$file_name = $name . "." . sprintf("%d",getCurrentUTimeMilis(). (rand()*10000)) . ".data";
|
||||||
}
|
}
|
||||||
@ -845,6 +846,10 @@ sub transfer_xml {
|
|||||||
|
|
||||||
close ($FD);
|
close ($FD);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$file_path = $xml;
|
||||||
|
}
|
||||||
|
|
||||||
# Reassign default values if not present
|
# Reassign default values if not present
|
||||||
$conf->{tentacle_client} = "tentacle_client" if empty($conf->{tentacle_client});
|
$conf->{tentacle_client} = "tentacle_client" if empty($conf->{tentacle_client});
|
||||||
$conf->{tentacle_port} = "41121" if empty($conf->{tentacle_port});
|
$conf->{tentacle_port} = "41121" if empty($conf->{tentacle_port});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user