new helper function to retrieve settings

This commit is contained in:
huangjx
2022-04-22 18:29:21 +08:00
parent 49477881a9
commit 5ae1685044
7 changed files with 29 additions and 24 deletions

View File

@@ -20,8 +20,7 @@ class folderScan
public function getDefaultPath()
{
$settings = new Settings($this->user);
return $settings->get('ncd_downloader_dir') ?? "/Downloads";
return Helper::getDownloadDir();
}
public static function create($path = null, $user = null)
{