mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix install error (25463447 regression)
This commit is contained in:
parent
65dc194ed4
commit
1400895d27
1 changed files with 8 additions and 5 deletions
|
|
@ -137,12 +137,15 @@ class Config
|
|||
|
||||
// Backup the main config file.
|
||||
$config_filename = \RX_BASEDIR . self::$config_filename;
|
||||
$backup_filename = \RX_BASEDIR . self::$config_filename . '.backup.' . time() . '.php';
|
||||
$result = Storage::copy($config_filename, $backup_filename);
|
||||
clearstatcache(true, $backup_filename);
|
||||
if (!$result || filesize($config_filename) !== filesize($backup_filename))
|
||||
if (Storage::exists($config_filename))
|
||||
{
|
||||
return false;
|
||||
$backup_filename = \RX_BASEDIR . self::$config_filename . '.backup.' . time() . '.php';
|
||||
$result = Storage::copy($config_filename, $backup_filename);
|
||||
clearstatcache(true, $backup_filename);
|
||||
if (!$result || filesize($config_filename) !== filesize($backup_filename))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Save the main config file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue