diff --git a/Blacklight/NZBImport.php b/Blacklight/NZBImport.php index 5b08e1d2f..adbdf600a 100755 --- a/Blacklight/NZBImport.php +++ b/Blacklight/NZBImport.php @@ -148,7 +148,7 @@ class NZBImport if (strtolower(substr($nzbFile, -7)) === '.nzb.gz') { $nzbString = Utility::unzipGzipFile($nzbFile); } else { - $nzbString = file_get_contents($nzbFile); + $nzbString = File::get($nzbFile); } if ($nzbString === false) { diff --git a/Blacklight/db/PreDb.php b/Blacklight/db/PreDb.php index 1ba8c4dad..97f67e17a 100755 --- a/Blacklight/db/PreDb.php +++ b/Blacklight/db/PreDb.php @@ -228,7 +228,7 @@ SQL_EXPORT; if (! $options['read'] || ! File::isFile($options['path'])) { File::put($options['path'], base64_encode(serialize($settings))); } else { - $settings = unserialize(base64_decode(file_get_contents($options['path']))); + $settings = unserialize(base64_decode(File::get($options['path']))); } return $settings; diff --git a/Blacklight/processing/post/ProcessAdditional.php b/Blacklight/processing/post/ProcessAdditional.php index 47e891ff0..bca770288 100755 --- a/Blacklight/processing/post/ProcessAdditional.php +++ b/Blacklight/processing/post/ProcessAdditional.php @@ -1250,7 +1250,7 @@ class ProcessAdditional // Check if the file exists. if (File::isFile($file[0])) { - $rarData = @file_get_contents($file[0]); + $rarData = @File::get($file[0]); if ($rarData !== false) { $this->_processCompressedData($rarData); $foundCompressedFile = true; @@ -2174,7 +2174,7 @@ class ProcessAdditional */ protected function _processNfoFile($fileLocation): void { - $data = @file_get_contents($fileLocation); + $data = @File::get($fileLocation); if ($data !== false && $this->_nfo->isNFO($data, $this->_release->guid) === true && $this->_nfo->addAlternateNfo($data, (array) $this->_release, $this->_nntp) === true) { $this->_releaseHasNoNFO = false; } diff --git a/Changelog b/Changelog index 43b327772..be0a50699 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-07 DariusIII + * Chg: More File facade usage for files manipulation * Chg: Remove MenuTableSeeder as the model and table do not exist anymore * Chg: Update PreDb class and predb_import_daily_batch script * Chg: Use File facade for files manipulation