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