mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix usage of DS constant
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ class NZB
|
||||
$nzbPath = '';
|
||||
|
||||
for ($i = 0; $i < $levelsToSplit && $i < 32; $i++) {
|
||||
$nzbPath .= $releaseGuid[$i].DS;
|
||||
$nzbPath .= $releaseGuid[$i].'/';
|
||||
}
|
||||
|
||||
$nzbPath = $this->siteNzbPath.$nzbPath;
|
||||
|
||||
@@ -140,7 +140,7 @@ class NZBExport
|
||||
}
|
||||
|
||||
// Create a path to store the new NZB files.
|
||||
$currentPath = $path.$this->safeFilename($group['name']).DS;
|
||||
$currentPath = $path.$this->safeFilename($group['name']).'/';
|
||||
if (! File::isDirectory($currentPath) && ! File::makeDirectory($currentPath) && ! File::isDirectory($currentPath)) {
|
||||
throw new \RuntimeException(sprintf('Directory "%s" was not created', $currentPath));
|
||||
}
|
||||
|
||||
@@ -327,7 +327,7 @@ class ProcessAdditional
|
||||
);
|
||||
}
|
||||
|
||||
$this->_showCLIReleaseID = (PHP_BINARY.' '.__DIR__.DS.'ProcessAdditional.php ReleaseID: ');
|
||||
$this->_showCLIReleaseID = (PHP_BINARY.' '.__DIR__.'/ProcessAdditional.php ReleaseID: ');
|
||||
|
||||
// Maximum amount of releases to fetch per run.
|
||||
$this->_queryLimit =
|
||||
@@ -433,9 +433,9 @@ class ProcessAdditional
|
||||
|
||||
// If we are doing per group, use the groupID has a inner path, so other scripts don't delete the files we are working on.
|
||||
if ($groupID !== '') {
|
||||
$this->_mainTmpPath .= ($groupID.DS);
|
||||
$this->_mainTmpPath .= ($groupID.'/');
|
||||
} elseif ($guidChar !== '') {
|
||||
$this->_mainTmpPath .= ($guidChar.DS);
|
||||
$this->_mainTmpPath .= ($guidChar.'/');
|
||||
}
|
||||
|
||||
if (! File::isDirectory($this->_mainTmpPath)) {
|
||||
@@ -634,7 +634,7 @@ class ProcessAdditional
|
||||
protected function _createTempFolder(): bool
|
||||
{
|
||||
// Per release defaults.
|
||||
$this->tmpPath = $this->_mainTmpPath.$this->_release->guid.DS;
|
||||
$this->tmpPath = $this->_mainTmpPath.$this->_release->guid.'/';
|
||||
if (! File::isDirectory($this->tmpPath)) {
|
||||
if (! File::makeDirectory($this->tmpPath, 0777, true, false) && ! File::isDirectory($this->tmpPath)) {
|
||||
$this->_echo('Unable to create directory: '.$this->tmpPath, 'warning');
|
||||
|
||||
Reference in New Issue
Block a user