mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 17:00:45 +01:00
* Api: use proxy configuration when downloading available tutorial videos
This commit is contained in:
parent
e8d67952b9
commit
163c87db82
@ -120,7 +120,8 @@ class Tutorial
|
|||||||
{
|
{
|
||||||
if (!($json = Api\Cache::getCache(Api\Cache::TREE, __CLASS__, 'egw_tutorial_json')))
|
if (!($json = Api\Cache::getCache(Api\Cache::TREE, __CLASS__, 'egw_tutorial_json')))
|
||||||
{
|
{
|
||||||
$json = file_get_contents('https://www.egroupware.de/videos/tutorials.json');
|
$json = file_get_contents('https://www.egroupware.de/videos/tutorials.json',
|
||||||
|
false, Api\Framework::proxy_context());
|
||||||
// Fallback tutorials.json
|
// Fallback tutorials.json
|
||||||
if (!$json) $json = file_get_contents('api/setup/tutorials.json');
|
if (!$json) $json = file_get_contents('api/setup/tutorials.json');
|
||||||
// Cache the json object for two hours
|
// Cache the json object for two hours
|
||||||
|
Loading…
Reference in New Issue
Block a user