Skip to content

Commit

Permalink
Fix general settings
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Jun 12, 2022
1 parent 904eb99 commit 1caca74
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions upload/modules/Suggestions/pages/panel/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@
}
} else {
$location = 1;
}

// Update Icon cache
$cache->setCache('navbar_icons');
$cache->store('suggestions_icon', Input::get('icon'));
// Update Icon cache
$cache->setCache('navbar_icons');
$cache->store('suggestions_icon', Input::get('icon'));

// Update Link location cache
$cache->setCache('suggestions_module_cache');
$cache->store('link_location', $location);
// Update Link location cache
$cache->setCache('suggestions_module_cache');
$cache->store('link_location', $location);

Session::flash('suggestions_success', $suggestions_language->get('admin', 'settings_updated_successfully'));
Redirect::to(URL::build('/panel/suggestions/settings'));
}
Session::flash('suggestions_success', $suggestions_language->get('admin', 'settings_updated_successfully'));
Redirect::to(URL::build('/panel/suggestions/settings'));
} else {
// Invalid token
$errors[] = $language->get('general', 'invalid_token');
Expand Down

0 comments on commit 1caca74

Please sign in to comment.