X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fcurrent_user.inc;h=4d2d208177d0af531764cf1a097c64d6acaa2f73;hb=c5ea8220cbcdc1c60fdf60d9a045ae3eada78041;hp=0e7a4a878091330b7cfa3564e11cb03d971a4b9d;hpb=ec3b5ef00ee07bdf7559c8bdb6f857b7464c3fbe;p=fa-stable.git diff --git a/includes/current_user.inc b/includes/current_user.inc index 0e7a4a87..4d2d2081 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -100,11 +100,11 @@ 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, $show_hints, $profile, $rep_popup) { + $theme, $pagesize, $show_hints, $profile, $rep_popup, $query_size) { 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, - $show_hints, $profile, $rep_popup); + $show_hints, $profile, $rep_popup, $query_size); // re-read the prefs $user = get_user($this->username); @@ -274,14 +274,19 @@ function user_rep_popup() return $_SESSION["wa_current_user"]->prefs->rep_popup(); } +function user_query_size() +{ + return $_SESSION["wa_current_user"]->prefs->query_size(); +} + function set_user_prefs($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes, $date_format, $date_sep, $tho_sep, $dec_sep, $theme, $pagesize, $show_hints, - $print_profile, $rep_popup) + $print_profile, $rep_popup, $query_size) { $_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, $show_hints, - $print_profile, $rep_popup); + $print_profile, $rep_popup, $query_size); } function add_user_js_data() {