removed unneeded parameters
This commit is contained in:
@@ -400,12 +400,12 @@ class Helper
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRealDownloadDir($uid = null): string
|
public static function getRealDownloadDir(): string
|
||||||
{
|
{
|
||||||
$dlDir = self::getDownloadDir();
|
$dlDir = self::getDownloadDir();
|
||||||
return self::getLocalFolder($dlDir);
|
return self::getLocalFolder($dlDir);
|
||||||
}
|
}
|
||||||
public static function getRealTorrentsDir($uid = null): string
|
public static function getRealTorrentsDir(): string
|
||||||
{
|
{
|
||||||
$dir = self::getSettings('ncd_torrents_dir', "/Torrents");
|
$dir = self::getSettings('ncd_torrents_dir', "/Torrents");
|
||||||
return self::getLocalFolder($dir);
|
return self::getLocalFolder($dir);
|
||||||
@@ -450,8 +450,8 @@ class Helper
|
|||||||
$options = [];
|
$options = [];
|
||||||
$uid = $uid ?? self::getUID();
|
$uid = $uid ?? self::getUID();
|
||||||
$settings = self::newSettings($uid);
|
$settings = self::newSettings($uid);
|
||||||
$realDownloadDir = Helper::getRealDownloadDir($uid);
|
$realDownloadDir = Helper::getRealDownloadDir();
|
||||||
$torrentsDir = Helper::getRealTorrentsDir($uid);
|
$torrentsDir = Helper::getRealTorrentsDir();
|
||||||
$appPath = self::getAppPath();
|
$appPath = self::getAppPath();
|
||||||
$dataDir = self::getDataDir();
|
$dataDir = self::getDataDir();
|
||||||
$aria2_dir = $dataDir . "/aria2";
|
$aria2_dir = $dataDir . "/aria2";
|
||||||
|
|||||||
Reference in New Issue
Block a user