mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update AdminSettingsController
This commit is contained in:
parent
4348680907
commit
095b135f4f
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ trait AdminSettingsController
|
|||
{
|
||||
$editor = config('pixelfed.admin.env_editor');
|
||||
$config = !$editor ? false : file_get_contents(base_path('.env'));
|
||||
$backup = !$editor ? false : file_get_contents(base_path('.env.backup'));
|
||||
$backup = !$editor ? false : (is_file(base_path('.env.backup')) ? file_get_contents(base_path('.env.backup')) : false);
|
||||
return view('admin.settings.config', compact('editor', 'config', 'backup'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue