From a49fd169169e19631239bc999326d6e0c167ac75 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 8 Jul 2017 13:42:05 -0700 Subject: [PATCH] Fixed delete file settings route --- app/Http/Controllers/SettingsController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index d1ed933ce1..c7b1fe4f7a 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -911,11 +911,11 @@ class SettingsController extends Controller } else { // Redirect to the backup page - return redirect()->route('settings/backups')->with('error', trans('admin/settings/message.backup.file_not_found')); + return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found')); } } else { // Redirect to the backup page - return redirect()->route('settings/backups')->with('error', trans('general.feature_disabled')); + return redirect()->route('settings.backups.index')->with('error', trans('general.feature_disabled')); } @@ -937,12 +937,12 @@ class SettingsController extends Controller $file = $path.'/'.$filename; if (file_exists($file)) { unlink($file); - return redirect()->route('settings/backups')->with('success', trans('admin/settings/message.backup.file_deleted')); + return redirect()->route('settings.backups.index')->with('success', trans('admin/settings/message.backup.file_deleted')); } else { - return redirect()->route('settings/backups')->with('error', trans('admin/settings/message.backup.file_not_found')); + return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found')); } } else { - return redirect()->route('settings/backups')->with('error', trans('general.feature_disabled')); + return redirect()->route('settings.backups.index')->with('error', trans('general.feature_disabled')); } }