- // Check if color has 6 or 3 characters and get values
- if(strlen($color) == 6) {
- $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
- } elseif( strlen( $color ) == 3 ) {
- $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
- } else {
- return false;
- }
-
- // Convert hexadec to rgb
- $rgb = array_map('hexdec', $hex);
+ $section = $request->get('section', '');
+ $this->logActivity(ActivityType::SETTINGS_UPDATE, $section);
+ $this->showSuccessNotification(trans('settings.settings_save_success'));
+ $redirectLocation = '/settings#' . $section;