This commit is contained in:
Joey Kimsey
2025-01-28 17:33:12 -05:00
parent 2004837a8f
commit 9fe4829b47
34 changed files with 605 additions and 199 deletions

View File

@ -95,12 +95,6 @@ class Home extends Controller {
Views::view( 'about' );
}
public function contact() {
self::$title = 'Contact Us - {SITENAME}';
self::$pageDescription = 'On this page, you\'ll be able to reach out to the team directly with any questions, comments, or concerns you may have.';
Views::view( 'contact' );
}
public function privacy() {
self::$title = 'Privacy Policy - {SITENAME}';
self::$pageDescription = 'At {SITENAME} you privacy is very important to us. On this page you can find a detailed outline of all the information we collect and how its used.';

View File

@ -139,11 +139,9 @@ class Usercp extends Controller {
$prefs = new Preferences;
$fields1 = $prefs->convertFormToArray( true, false );
$fields2 = [];
$fields3 = $fields1;
if ( isset( $fields1[ $name ] ) ) {
$fields2[ $name ] = $value;
$fields3[ $name ] = $value;
}
$result = self::$user->updatePrefs( $fields3, App::$activeUser->ID );