* Api: use proxy configuration when downloading available tutorial videos

This commit is contained in:
Ralf Becker 2018-03-12 11:10:02 +01:00
parent e8d67952b9
commit 163c87db82

View File

@ -120,7 +120,8 @@ class Tutorial
{
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
if (!$json) $json = file_get_contents('api/setup/tutorials.json');
// Cache the json object for two hours