mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Use e107::getFile()->getRemoteContent() instead of file_get_contents().
This commit is contained in:
parent
d2ee6cf6ac
commit
a059776ac1
@ -1599,14 +1599,7 @@ class e_library_manager
|
||||
// The library will be cached with version number, so this only run once per library.
|
||||
if(substr($file, 0, 4) == 'http')
|
||||
{
|
||||
$context = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),
|
||||
);
|
||||
|
||||
$content = file_get_contents($file, false, stream_context_create($context));
|
||||
$content = e107::getFile()->getRemoteContent($file);
|
||||
$tmpFile = tempnam(sys_get_temp_dir(), 'lib_');
|
||||
|
||||
if($tmpFile)
|
||||
|
Loading…
x
Reference in New Issue
Block a user