mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
removing dead code
This commit is contained in:
parent
62f0b95377
commit
dbfb1e83ba
|
@ -107,9 +107,7 @@ class Configuration
|
|||
if (is_readable($configIni)) {
|
||||
// don't overwrite already converted file
|
||||
if (!is_file($configFile)) {
|
||||
$iniUpgradeError = false;
|
||||
$context = stream_context_create();
|
||||
$iniHandle = fopen($configIni, 'r', 1, $context);
|
||||
$iniHandle = fopen($configIni, 'r', false, stream_context_create());
|
||||
$written = file_put_contents($configFile, ';<?php /*' . PHP_EOL);
|
||||
$written = file_put_contents($configFile, $iniHandle, FILE_APPEND);
|
||||
fclose($iniHandle);
|
||||
|
|
Loading…
Reference in New Issue
Block a user