X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcurrent_user.inc;h=9e5938eba5e2f1bc1092420b0860aa79683119f8;hb=2e7f3c8aa39857f625378d8c43bbd3c54993cd45;hp=12d559dd178d752d4f4d48fa75c43352785256de;hpb=f6e1b649fc75750383b17c2ced6a5c1d6f19fe2e;p=fa-stable.git diff --git a/includes/current_user.inc b/includes/current_user.inc index 12d559dd..9e5938eb 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -94,9 +94,9 @@ class current_user } function update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes, - $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize) { + $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints) { update_user_display_prefs($this->username, $price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, - $showcodes, $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize); + $showcodes, $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints); // re-read the prefs $user = get_user($this->username); @@ -228,12 +228,17 @@ function user_pagesize() return $_SESSION["wa_current_user"]->prefs->get_pagesize(); } +function user_hints() +{ + return $_SESSION["wa_current_user"]->prefs->show_hints(); +} + function set_user_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes, - $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize) + $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints) { $_SESSION["wa_current_user"]->update_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes, - $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize); + $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints); } function add_user_js_data() {