Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 9f0c83a

Browse files
authored
Remove context, unused
1 parent 745d47c commit 9f0c83a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lib/updater.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ function copyOldVersion() {
5555
}
5656
$source = "../";
5757
$dest = PATH;
58-
// Set a stream context timeout for file reading
59-
$context = stream_context_create(array('http'=>
60-
array(
61-
'timeout' => 60 // secs
62-
)
63-
));
58+
6459
echo 'Moving current ICEcoder files...<br>';
6560
foreach ($iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),RecursiveIteratorIterator::SELF_FIRST) as $item) {
6661
if (strpos($source.DIRECTORY_SEPARATOR.$iterator->getSubPathName(),"oldVersion")==false) {
@@ -84,8 +79,6 @@ function copyOldVersion() {
8479
}
8580

8681
function openZipNew($icvInfo) {
87-
global $context;
88-
8982
echo 'Retrieving zip from ICEcoder site...<br>';
9083
$source = 'ICEcoder v'.$icvInfo;
9184
$target = '../';
@@ -129,8 +122,6 @@ function openZipNew($icvInfo) {
129122
}
130123

131124
function transposeSettings($oldFile,$newFile,$saveFile) {
132-
global $context;
133-
134125
echo '- Getting old and new settings...<br>';
135126
// Get old and new settings and start a new $contents
136127
$oldSettingsContent = getData($oldFile);
@@ -213,7 +204,7 @@ function copyOverSettings($icvInfo) {
213204
echo '<script>alert("'.$t['Update appears to...'].'");window.location = "../?display=updated&csrf='.$_SESSION["csrf"].'";</script>';
214205
} else {
215206
echo 'Something appears to have gone wrong :-/<br><br>';
216-
echo 'Please report bugs at <a href=\"https://github.com/%3Cspan%20class="x x-first x-last">mattpass/ICEcoder\" style=\"color: #fff\">https://github.com/mattpass/ICEcoder</a><br><br>';
207+
echo 'Please report bugs at <a href=\"https://github.com/%3Cspan%20class="x x-first x-last">icecoder/ICEcoder\" style=\"color: #fff\">https://github.com/icecoder/ICEcoder</a><br><br>';
217208
echo 'You can recover the old version from ICEcoder\'s tmp dir';
218209
}
219210
?>

0 commit comments

Comments
 (0)