From 093d8532c41c5f35c4deb844de31179649fb5fcb Mon Sep 17 00:00:00 2001 From: Darko Date: Mon, 16 Jun 2014 14:46:42 +0200 Subject: [PATCH] Fixed the wrong path variable. --- lib/ProcessAdditional.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/ProcessAdditional.php b/lib/ProcessAdditional.php index 62776e0d0..68ece04ba 100644 --- a/lib/ProcessAdditional.php +++ b/lib/ProcessAdditional.php @@ -110,6 +110,8 @@ Class ProcessAdditional $this->_nfo = new Info($this->_echoCLI); $this->_functions = new Functions(); $this->c = new ColorCLI(); + $this->jpgSavePath = WWW_DIR . 'covers/sample/'; + $this->vidSavePath = WWW_DIR . 'covers/video/'; // Pass the binary extractors to ArchiveInfo. $clients = array(); @@ -1098,7 +1100,7 @@ Class ProcessAdditional // Try to resize and move it. $this->_foundJPGSample = $this->_releaseImage->saveImage( - $this->_release['guid'] . '_thumb', $this->tmpPath . 'samplepicture.jpg', $this->_tmuxSettings->jpgSavePath, 650, 650 + $this->_release['guid'] . '_thumb', $this->tmpPath . 'samplepicture.jpg', $this->jpgSavePath, 650, 650 ); if ($this->_foundJPGSample !== false) { @@ -1138,11 +1140,11 @@ Class ProcessAdditional $iSQL = ', haspreview = 1'; } - if (is_file($this->_tmuxSettings->vidSavePath . $this->_release['guid'] . '.ogv')) { + if (is_file($this->vidSavePath . $this->_release['guid'] . '.ogv')) { $vSQL = ', videostatus = 1'; } - if (is_file($this->_tmuxSettings->jpgSavePath . $this->_release['guid'] . '_thumb.jpg')) { + if (is_file($this->jpgSavePath . $this->_release['guid'] . '_thumb.jpg')) { $jSQL = ', jpgstatus = 1'; } @@ -1433,7 +1435,7 @@ Class ProcessAdditional $this->_foundJPGSample = $this->_releaseImage->saveImage( $this->_release['guid'] . '_thumb', - $fileLocation, $this->_tmuxSettings->jpgSavePath, 650, 650 + $fileLocation, $this->jpgSavePath, 650, 650 ); // If it's successful, tell the DB. @@ -1650,7 +1652,7 @@ Class ProcessAdditional if ($file === $fileName) { // Create a path to where the file should be moved. - $newFile = $this->_tmuxSettings->vidSavePath . $this->_release['guid'] . '.ogv'; + $newFile = $this->vidSavePath . $this->_release['guid'] . '.ogv'; // Try to move the file to the new path. $renamed = @rename($this->tmpPath . $fileName, $newFile);