mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:57 +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')))
|
||||
{
|
||||
$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
|
||||
|
Loading…
Reference in New Issue
Block a user