Update AdminSettingsController

This commit is contained in:
Daniel Supernault 2019-06-20 20:51:27 -06:00
parent 4348680907
commit 095b135f4f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}