From 163c87db823e3a951b550477fb505bf374117bfe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Mar 2018 11:10:02 +0100 Subject: [PATCH] * Api: use proxy configuration when downloading available tutorial videos --- api/src/Framework/Tutorial.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Framework/Tutorial.php b/api/src/Framework/Tutorial.php index 4f71a7c438..8a9f591c58 100644 --- a/api/src/Framework/Tutorial.php +++ b/api/src/Framework/Tutorial.php @@ -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