This commit is contained in:
Joey Kimsey
2025-01-30 13:11:02 -05:00
parent 02892dfe6d
commit b8d2550901
10 changed files with 61 additions and 1 deletions

View File

@ -104,6 +104,10 @@ class Usercp extends Controller {
$userPrefs = App::$activePrefs;
if ( Input::exists( 'submit' ) ) {
$fields = $prefs->convertFormToArray( true, false );
// @TODO now i may need to rework the form checker to work with this....
// if (!Forms::check('userPrefs')) {
// Issues::add( 'error', [ 'There was an error with your request.' => Check::userErrors() ] );
// }
self::$user->updatePrefs( $fields, App::$activeUser->ID );
Issues::add( 'success', 'Your preferences have been updated.' );
// if the image upload fails, need to fall back on original