mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +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,6 +137,8 @@ class Config
|
|||
|
||||
// Backup the main config file.
|
||||
$config_filename = \RX_BASEDIR . self::$config_filename;
|
||||
if (Storage::exists($config_filename))
|
||||
{
|
||||
$backup_filename = \RX_BASEDIR . self::$config_filename . '.backup.' . time() . '.php';
|
||||
$result = Storage::copy($config_filename, $backup_filename);
|
||||
clearstatcache(true, $backup_filename);
|
||||
|
|
@ -144,6 +146,7 @@ class Config
|
|||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Save the main config file.
|
||||
$buff = '<?php' . "\n" . '// Rhymix System Configuration' . "\n" . 'return ' . self::serialize(self::$_config) . ';' . "\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue