Skip to content

Commit

Permalink
Update AutoUpdate.php
Browse files Browse the repository at this point in the history
http://php.net/manual/en/function.file-get-contents.php
"Context" must be passed by the third parameter
  • Loading branch information
Metallizzer authored May 12, 2017
1 parent e72d8bb commit d62aea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public function checkUpdate()
$this->_log->addDebug(sprintf('Get new updates from %s', $updateFile));

// Read update file from update server
$update = @file_get_contents($updateFile, $this->_useBasicAuth());
$update = @file_get_contents($updateFile, false, $this->_useBasicAuth());
if ($update === false) {
$this->_log->addInfo(sprintf('Could not download update file "%s"!', $updateFile));

Expand Down Expand Up @@ -552,7 +552,7 @@ public function newVersionAvailable()
protected function _downloadUpdate($updateUrl, $updateFile)
{
$this->_log->addInfo(sprintf('Downloading update "%s" to "%s"', $updateUrl, $updateFile));
$update = @file_get_contents($updateUrl, $this->_useBasicAuth());
$update = @file_get_contents($updateUrl, false, $this->_useBasicAuth());

if ($update === false) {
$this->_log->addError(sprintf('Could not download update "%s"!', $updateUrl));
Expand Down

0 comments on commit d62aea2

Please sign in to comment.