Skip to content
Snippets Groups Projects
Commit 124decf7 authored by Olav Morken's avatar Olav Morken
Browse files

bin/translation.php: HTTP proxy support.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2664 44740490-163a-0410-bde0-09ae8108e29a
parent f651059a
No related branches found
No related tags found
No related merge requests found
......@@ -40,13 +40,13 @@ echo 'File base: [' . $basefile . ']'. "\n";
switch($action) {
case 'pulldef':
$content = file_get_contents($base . 'export.php?aid=' . $application . '&type=def&file=' . $basefile);
$content = SimpleSAML_Utilities::fetch($base . 'export.php?aid=' . $application . '&type=def&file=' . $basefile);
file_put_contents($fileWithoutExt . '.definition.json' , $content);
break;
case 'pull':
$content = file_get_contents($base . 'export.php?aid=' . $application . '&type=translation&file=' . $basefile);
$content = SimpleSAML_Utilities::fetch($base . 'export.php?aid=' . $application . '&type=translation&file=' . $basefile);
file_put_contents($fileWithoutExt . '.translation.json' , $content);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment