From a583cb414bd0d22ddeb45e3f623aa47caaac4bd1 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Mon, 6 May 2024 01:51:45 -0600 Subject: [PATCH] cut some duplication --- admin.php | 60 ++++++++++++++----------------------------------------- 1 file changed, 15 insertions(+), 45 deletions(-) diff --git a/admin.php b/admin.php index c01e35937..0499d026f 100644 --- a/admin.php +++ b/admin.php @@ -84,20 +84,7 @@ function save_pref ( $prefs, $src ) { // Make sure globals values passed to styles.php are for this user. // Makes the demo calendar and Page title accurate. $GLOBALS['APPLICATION_NAME'] = $s['APPLICATION_NAME']; - $GLOBALS['BGCOLOR'] = $s['BGCOLOR']; - $GLOBALS['CELLBG'] = $s['CELLBG']; $GLOBALS['FONTS'] = $s['FONTS']; - $GLOBALS['H2COLOR'] = $s['H2COLOR']; - $GLOBALS['HASEVENTSBG'] = $s['HASEVENTSBG']; - $GLOBALS['MYEVENTS'] = $s['MYEVENTS']; - $GLOBALS['OTHERMONTHBG'] = $s['OTHERMONTHBG']; - $GLOBALS['TABLEBG'] = $s['TABLEBG']; - $GLOBALS['TEXTCOLOR'] = $s['TEXTCOLOR']; - $GLOBALS['THBG'] = $s['THBG']; - $GLOBALS['THFG'] = $s['THFG']; - $GLOBALS['TODAYCELLBG'] = $s['TODAYCELLBG']; - $GLOBALS['WEEKENDBG'] = $s['WEEKENDBG']; - $GLOBALS['WEEKNUMBER'] = $s['WEEKNUMBER']; define_languages(); // Load the language list. reset ( $languages ); @@ -127,8 +114,9 @@ function save_pref ( $prefs, $src ) { $option = '