Browse Source

fix no https wrapper errors

pull/59/head
Matthias Vogel 11 years ago
parent
commit
1b5e52e497
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      system/includes/updater.php

+ 7
- 1
system/includes/updater.php View File

@ -59,7 +59,11 @@ class Updater
}
else
{
$fileContent = file_get_contents($path,false, stream_context_create(
if(!in_array('https', stream_get_wrappers()))
{
return array();
}
$fileContent = @file_get_contents($path,false, stream_context_create(
array(
'http' => array(
'header'=>"User-Agent: Awesome-Update-My-Self\r\n"
@ -80,6 +84,8 @@ class Updater
public function updateAble()
{
if(!in_array('https', stream_get_wrappers()))
return false;
if(empty($this->infos))
return false;


Loading…
Cancel
Save