F diff --git a/php/.configuration.php.swp b/php/.configuration.php.swp
new file mode 100644
B Binary files /dev/null and b/php/.configuration.php.swp differ
F diff --git a/php/database.php b/php/database.php
--- a/php/database.php
+++ b/php/database.php
return;
}
}
- unlink($storage_root,"/".$location);
+ unlink($storage_root."/".$location);
if($location==NULL)
{
function unlink_nodes(int $dir_id, string $filename)
{
+ global $storage_root;
/*TODO delet this*/
error_log("in unlink nodes");
$prep=$this->pdo->prepare("delete from node_links
$res=$prep->fetchAll(PDO::FETCH_ASSOC);
foreach($res as $node)
{
- unlink($storage_root,"/".$node["code"]);
+ unlink($storage_root."/".$node["code"]);
+ error_log("deleting: ".$storage_root."/".$node["code"]);
}
$prep=$this->pdo->prepare("delete from nodes where node_id in
(select node_id from super_trash)");