removing dead code

This commit is contained in:
El RIDO 2017-10-04 22:06:39 +02:00
parent 62f0b95377
commit dbfb1e83ba
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
1 changed files with 1 additions and 3 deletions

View File

@ -107,9 +107,7 @@ class Configuration
if (is_readable($configIni)) { if (is_readable($configIni)) {
// don't overwrite already converted file // don't overwrite already converted file
if (!is_file($configFile)) { if (!is_file($configFile)) {
$iniUpgradeError = false; $iniHandle = fopen($configIni, 'r', false, stream_context_create());
$context = stream_context_create();
$iniHandle = fopen($configIni, 'r', 1, $context);
$written = file_put_contents($configFile, ';<?php /*' . PHP_EOL); $written = file_put_contents($configFile, ';<?php /*' . PHP_EOL);
$written = file_put_contents($configFile, $iniHandle, FILE_APPEND); $written = file_put_contents($configFile, $iniHandle, FILE_APPEND);
fclose($iniHandle); fclose($iniHandle);