diff --git a/app/Http/Controllers/Admin/AdminSettingsController.php b/app/Http/Controllers/Admin/AdminSettingsController.php index 380e7d8a0..c033b769b 100644 --- a/app/Http/Controllers/Admin/AdminSettingsController.php +++ b/app/Http/Controllers/Admin/AdminSettingsController.php @@ -199,30 +199,6 @@ trait AdminSettingsController return view('admin.settings.backups', compact('files')); } - public function settingsConfig(Request $request) - { - $editor = config('pixelfed.admin.env_editor'); - $config = !$editor ? false : file_get_contents(base_path('.env')); - $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')); - } - - public function settingsConfigStore(Request $request) - { - if(config('pixelfed.admin.env_editor') !== true) { - abort(400); - } - return ['msg' => 200]; - } - - public function settingsConfigRestore(Request $request) - { - if(config('pixelfed.admin.env_editor') !== true) { - abort(400); - } - return ['msg' => 200]; - } - public function settingsMaintenance(Request $request) { return view('admin.settings.maintenance'); diff --git a/resources/views/admin/settings/config.blade.php b/resources/views/admin/settings/config.blade.php deleted file mode 100644 index e94b2f787..000000000 --- a/resources/views/admin/settings/config.blade.php +++ /dev/null @@ -1,94 +0,0 @@ -@extends('admin.partial.template') - -@include('admin.settings.sidebar') - -@section('section') -
Configuration Editor is disabled
-To enable it, add ADMIN_ENV_EDITOR=true
to .env
then run php artisan config:cache
Edit configuration settings
-- Warning: If you have opcache enabled, you may need to restart php for the changes to take effect. -
-