Skip to content

Commit 124decf

Browse files
committed
bin/translation.php: HTTP proxy support.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2664 44740490-163a-0410-bde0-09ae8108e29a
1 parent f651059 commit 124decf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/translation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
switch($action) {
4141
case 'pulldef':
4242

43-
$content = file_get_contents($base . 'export.php?aid=' . $application . '&type=def&file=' . $basefile);
43+
$content = SimpleSAML_Utilities::fetch($base . 'export.php?aid=' . $application . '&type=def&file=' . $basefile);
4444
file_put_contents($fileWithoutExt . '.definition.json' , $content);
4545
break;
4646

4747
case 'pull':
4848

49-
$content = file_get_contents($base . 'export.php?aid=' . $application . '&type=translation&file=' . $basefile);
49+
$content = SimpleSAML_Utilities::fetch($base . 'export.php?aid=' . $application . '&type=translation&file=' . $basefile);
5050
file_put_contents($fileWithoutExt . '.translation.json' , $content);
5151
break;
5252

0 commit comments

Comments
 (0)