diff options
Diffstat (limited to 'includes/user_preferences_inc.php')
| -rwxr-xr-x[-rw-r--r--] | includes/user_preferences_inc.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/includes/user_preferences_inc.php b/includes/user_preferences_inc.php index 201acd9..27a56bd 100644..100755 --- a/includes/user_preferences_inc.php +++ b/includes/user_preferences_inc.php @@ -1,26 +1,28 @@ <?php + +use Bitweaver\Liberty\LibertyContent; /** * @package boards * @subpackage functions */ -$boardsSettings = array( +$boardsSettings = [ /* - 'boards_show_avatars' => array( + 'boards_show_avatars' => [ 'pref' => 'boards_show_avatars', 'label' => "Show Avatars", 'type' => "checkbox", 'default' => 'y', 'note' => "", - ), + ], */ -); +]; if (!empty( $_REQUEST['boards'] ) ) { foreach( $boardsSettings as $option => $op) { if ($op['type']=="checkbox") { - $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? 'y' : 'n', 'users'); + $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? 'y' : 'n'); } else { - $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? $_REQUEST['boards'][$option] : '', 'users'); + $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? $_REQUEST['boards'][$option] : ''); } } } @@ -38,7 +40,7 @@ if (!empty($content_type) && !empty($content_data)) { $signatureContent->mInfo['format_guid']=$editUser->getPreference('signature_content_type'); $signatureContent->mInfo['data']=$content_data; } -$gBitSmarty->assignByRef( 'signatureContent', $signatureContent ); +$gBitSmarty->assign( 'signatureContent', $signatureContent ); if( isset( $_REQUEST["format_guid"] ) ) { @@ -60,8 +62,6 @@ if( !empty( $_REQUEST["save_bitboarduprefs"] ) ) { // Check if all Request values are delivered, and if not, set them // to avoid error messages. This can happen if some features are // disabled - $editUser->storePreference('signature_content_type',$signatureContent->mInfo['format_guid'], 'users'); - $editUser->storePreference('signature_content_data',$signatureContent->mInfo['data'], 'users'); + $editUser->storePreference('signature_content_type',$signatureContent->mInfo['format_guid']); + $editUser->storePreference('signature_content_data',$signatureContent->mInfo['data']); } - -?> |
