diff --git a/app/bridges/bridges.php b/app/bridges/bridges.php index 0e23d473dd..11da2b0bb0 100644 --- a/app/bridges/bridges.php +++ b/app/bridges/bridges.php @@ -47,7 +47,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['bridges'])) { diff --git a/app/call_block/call_block.php b/app/call_block/call_block.php index 3d6ae3c27e..386ddbfbcf 100644 --- a/app/call_block/call_block.php +++ b/app/call_block/call_block.php @@ -46,7 +46,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['call_blocks'])) { diff --git a/app/call_broadcast/call_broadcast.php b/app/call_broadcast/call_broadcast.php index aac61a9d67..1bc0b669a7 100644 --- a/app/call_broadcast/call_broadcast.php +++ b/app/call_broadcast/call_broadcast.php @@ -47,7 +47,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['call_broadcasts'])) { diff --git a/app/call_centers/call_center_agents.php b/app/call_centers/call_center_agents.php index 634b1468ac..e14424d721 100644 --- a/app/call_centers/call_center_agents.php +++ b/app/call_centers/call_center_agents.php @@ -43,7 +43,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['call_center_agents'])) { diff --git a/app/call_centers/call_center_queues.php b/app/call_centers/call_center_queues.php index 3c8ea1743d..943af8fe8c 100644 --- a/app/call_centers/call_center_queues.php +++ b/app/call_centers/call_center_queues.php @@ -46,7 +46,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['call_center_queues']) && is_array($_POST['call_center_queues'])) { diff --git a/app/call_flows/call_flows.php b/app/call_flows/call_flows.php index 85d5182497..3fa0d04a66 100644 --- a/app/call_flows/call_flows.php +++ b/app/call_flows/call_flows.php @@ -46,7 +46,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get search $search = $_REQUEST['search'] ?? null; diff --git a/app/call_forward/call_forward.php b/app/call_forward/call_forward.php index e7de481ed3..5e6a6da891 100644 --- a/app/call_forward/call_forward.php +++ b/app/call_forward/call_forward.php @@ -296,7 +296,7 @@ echo " " . $text['label-dnd'] . "\n"; } echo " " . $text['label-description'] . "\n"; - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); if ($list_row_edit_button) { echo "  \n"; } diff --git a/app/conference_centers/conference_centers.php b/app/conference_centers/conference_centers.php index 91aa6a3502..d77939cda2 100644 --- a/app/conference_centers/conference_centers.php +++ b/app/conference_centers/conference_centers.php @@ -49,7 +49,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['conference_centers'])) { diff --git a/app/conference_centers/conference_rooms.php b/app/conference_centers/conference_rooms.php index ce52a1cc2c..e997ca44a7 100644 --- a/app/conference_centers/conference_rooms.php +++ b/app/conference_centers/conference_rooms.php @@ -49,7 +49,7 @@ $search = $_GET["search"] ?? null; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_rooms'])) { diff --git a/app/conference_centers/conference_session_details.php b/app/conference_centers/conference_session_details.php index ae36677f0b..4bfbfec390 100644 --- a/app/conference_centers/conference_session_details.php +++ b/app/conference_centers/conference_session_details.php @@ -45,7 +45,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //set variables from the http values $order_by = $_GET["order_by"] ?? '' ? $_GET["order_by"] : 'start_epoch'; diff --git a/app/conference_centers/conference_sessions.php b/app/conference_centers/conference_sessions.php index e881be1fb2..3d765bda33 100644 --- a/app/conference_centers/conference_sessions.php +++ b/app/conference_centers/conference_sessions.php @@ -46,7 +46,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_sessions'])) { diff --git a/app/conference_controls/conference_control_details.php b/app/conference_controls/conference_control_details.php index ba3569a980..c65d18403b 100644 --- a/app/conference_controls/conference_control_details.php +++ b/app/conference_controls/conference_control_details.php @@ -43,7 +43,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_control_details'])) { diff --git a/app/conference_controls/conference_controls.php b/app/conference_controls/conference_controls.php index 43af79f9d1..41f7bbac56 100644 --- a/app/conference_controls/conference_controls.php +++ b/app/conference_controls/conference_controls.php @@ -43,7 +43,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_controls'])) { diff --git a/app/conference_profiles/conference_profile_params.php b/app/conference_profiles/conference_profile_params.php index 0ab480e918..7edf4e3fb8 100644 --- a/app/conference_profiles/conference_profile_params.php +++ b/app/conference_profiles/conference_profile_params.php @@ -43,7 +43,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_profile_params'])) { diff --git a/app/conference_profiles/conference_profiles.php b/app/conference_profiles/conference_profiles.php index 4a7a0c9bab..37259c0a9d 100644 --- a/app/conference_profiles/conference_profiles.php +++ b/app/conference_profiles/conference_profiles.php @@ -45,7 +45,7 @@ $search = $_GET["search"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['conference_profiles'])) { diff --git a/app/conferences/conferences.php b/app/conferences/conferences.php index e61d54b0d5..54ce653391 100644 --- a/app/conferences/conferences.php +++ b/app/conferences/conferences.php @@ -46,7 +46,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['conferences'])) { diff --git a/app/database_transactions/database_transactions.php b/app/database_transactions/database_transactions.php index d95129a4c2..4ec96f3afa 100644 --- a/app/database_transactions/database_transactions.php +++ b/app/database_transactions/database_transactions.php @@ -51,7 +51,7 @@ $order = $_GET["order"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); $button_icon_view = !empty($_SESSION['theme']['button_icon_view']) ? $_SESSION['theme']['button_icon_view'] : ''; //add the user filter and search term diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 62b2cd8bed..201d72dab0 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -141,7 +141,7 @@ $order = $_GET["order"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //prepare to page the results $sql = "select count(*) from v_destinations "; diff --git a/app/dialplans/dialplans.php b/app/dialplans/dialplans.php index 594ac14706..9a9ac8b477 100644 --- a/app/dialplans/dialplans.php +++ b/app/dialplans/dialplans.php @@ -134,7 +134,7 @@ $show = !empty($_GET["show"]) ? $_GET["show"] : ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); $button_icon_add = $_SESSION['theme']['button_icon_add'] ?? ''; $button_icon_copy = $_SESSION['theme']['button_icon_copy'] ?? ''; $button_icon_toggle = $_SESSION['theme']['button_icon_toggle'] ?? ''; diff --git a/app/extension_settings/extension_settings.php b/app/extension_settings/extension_settings.php index c2716b6afb..26f06fffe1 100644 --- a/app/extension_settings/extension_settings.php +++ b/app/extension_settings/extension_settings.php @@ -44,7 +44,7 @@ $id = ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['extension_settings'])) { diff --git a/app/gateways/gateways.php b/app/gateways/gateways.php index cb9d02729b..b28182747e 100644 --- a/app/gateways/gateways.php +++ b/app/gateways/gateways.php @@ -118,7 +118,7 @@ $show = !empty($_GET["show"]) ? $_GET["show"] : ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get total gateway count from the database $sql = "select count(*) from v_gateways where true "; diff --git a/app/ivr_menus/ivr_menus.php b/app/ivr_menus/ivr_menus.php index edb964215d..3e57f95ea8 100644 --- a/app/ivr_menus/ivr_menus.php +++ b/app/ivr_menus/ivr_menus.php @@ -94,7 +94,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //prepare to page the results $sql = "select count(*) from v_ivr_menus "; diff --git a/app/modules/modules.php b/app/modules/modules.php index cdc8b56f06..3c52b53203 100644 --- a/app/modules/modules.php +++ b/app/modules/modules.php @@ -60,7 +60,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //process the http post data by action if ($action != '' && is_array($modules) && @sizeof($modules) != 0) { diff --git a/app/number_translations/number_translations.php b/app/number_translations/number_translations.php index 073c1b2c65..26da79e413 100644 --- a/app/number_translations/number_translations.php +++ b/app/number_translations/number_translations.php @@ -46,7 +46,7 @@ $search = $_GET["search"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['number_translations'])) { diff --git a/app/sip_profiles/sip_profiles.php b/app/sip_profiles/sip_profiles.php index 565f227eae..e39bd34806 100644 --- a/app/sip_profiles/sip_profiles.php +++ b/app/sip_profiles/sip_profiles.php @@ -76,7 +76,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get order and order by if (isset($_GET["order_by"])) { diff --git a/app/sofia_global_settings/sofia_global_settings.php b/app/sofia_global_settings/sofia_global_settings.php index d9b89df7eb..e877f3e2fe 100644 --- a/app/sofia_global_settings/sofia_global_settings.php +++ b/app/sofia_global_settings/sofia_global_settings.php @@ -44,7 +44,7 @@ $search = ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['sofia_global_settings'])) { diff --git a/app/vars/vars.php b/app/vars/vars.php index 305fc7bef3..4935b0103f 100644 --- a/app/vars/vars.php +++ b/app/vars/vars.php @@ -85,7 +85,7 @@ $order = $_GET["order"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the count $sql = "select count(var_uuid) from v_vars "; diff --git a/core/contacts/contact_addresses.php b/core/contacts/contact_addresses.php index eb874eb197..ea19afab4d 100644 --- a/core/contacts/contact_addresses.php +++ b/core/contacts/contact_addresses.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //set the uuid if (!empty($_GET['id']) && is_uuid($_GET['id'])) { diff --git a/core/contacts/contact_attachments.php b/core/contacts/contact_attachments.php index b9d92d6823..f34061174c 100644 --- a/core/contacts/contact_attachments.php +++ b/core/contacts/contact_attachments.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the contact attachment list $sql = "select *, length(decode(attachment_content,'base64')) as attachment_size from v_contact_attachments "; diff --git a/core/contacts/contact_emails.php b/core/contacts/contact_emails.php index d0da024299..2537253a6e 100644 --- a/core/contacts/contact_emails.php +++ b/core/contacts/contact_emails.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the contact list $sql = "select * from v_contact_emails "; diff --git a/core/contacts/contact_extensions.php b/core/contacts/contact_extensions.php index 5354aae37a..6d6d4b8a59 100644 --- a/core/contacts/contact_extensions.php +++ b/core/contacts/contact_extensions.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the extension list $sql = "select e.extension_uuid, e.extension, e.enabled, e.description "; diff --git a/core/contacts/contact_relations.php b/core/contacts/contact_relations.php index a717f46bdc..1d20bd23ac 100644 --- a/core/contacts/contact_relations.php +++ b/core/contacts/contact_relations.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the related contacts $sql = "select "; diff --git a/core/contacts/contact_settings.php b/core/contacts/contact_settings.php index f14b23c131..e017dc9746 100644 --- a/core/contacts/contact_settings.php +++ b/core/contacts/contact_settings.php @@ -39,7 +39,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the list $sql = "select * from v_contact_settings "; diff --git a/core/contacts/contact_times.php b/core/contacts/contact_times.php index bd7169f7aa..9a7f9cace6 100644 --- a/core/contacts/contact_times.php +++ b/core/contacts/contact_times.php @@ -38,7 +38,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //set the uuid if (!empty($_GET['id']) && is_uuid($_GET['id'])) { diff --git a/core/contacts/contacts.php b/core/contacts/contacts.php index 42e9f87cce..405bcbf1ed 100644 --- a/core/contacts/contacts.php +++ b/core/contacts/contacts.php @@ -46,7 +46,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['contacts'])) { diff --git a/core/databases/databases.php b/core/databases/databases.php index bf4c3d339c..dc24bdb9a6 100644 --- a/core/databases/databases.php +++ b/core/databases/databases.php @@ -46,7 +46,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['databases'])) { diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php index d2690bdb48..4d2af87dd3 100644 --- a/core/default_settings/default_settings.php +++ b/core/default_settings/default_settings.php @@ -82,7 +82,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //build the query string $query_string = ''; diff --git a/core/domain_settings/domain_settings.php b/core/domain_settings/domain_settings.php index f772f503f4..cd1228a677 100644 --- a/core/domain_settings/domain_settings.php +++ b/core/domain_settings/domain_settings.php @@ -54,7 +54,7 @@ $show = !empty($_GET["show"]) ? $_GET["show"] : ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the http post data if (!empty($_POST['action'])) { diff --git a/core/domains/domains.php b/core/domains/domains.php index 981d051f17..c1f8d34260 100644 --- a/core/domains/domains.php +++ b/core/domains/domains.php @@ -156,7 +156,7 @@ $show = $_GET["show"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //add the search string if (!empty($search)) { diff --git a/core/email_templates/email_templates.php b/core/email_templates/email_templates.php index e7d3363c3a..3cf16a6b63 100644 --- a/core/email_templates/email_templates.php +++ b/core/email_templates/email_templates.php @@ -40,7 +40,7 @@ $text = $language->get(); //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get posted data if (!empty($_POST['email_templates'])) { diff --git a/core/groups/groups.php b/core/groups/groups.php index 1c220033fa..05eca2eaac 100644 --- a/core/groups/groups.php +++ b/core/groups/groups.php @@ -88,7 +88,7 @@ } //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //get the count $sql = "select count(*) from view_groups \n"; diff --git a/core/menu/menu.php b/core/menu/menu.php index 22713d8edf..fec34008bf 100644 --- a/core/menu/menu.php +++ b/core/menu/menu.php @@ -48,7 +48,7 @@ $search = $_GET["search"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); $button_icon_add = $_SESSION['theme']['button_icon_add'] ?? ''; //get the http post data diff --git a/core/menu/menu_item_list.php b/core/menu/menu_item_list.php index 2f3a10f242..e672c1ffa1 100644 --- a/core/menu/menu_item_list.php +++ b/core/menu/menu_item_list.php @@ -73,7 +73,7 @@ $order = $_GET["order"] ?? ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //set the initial value $tmp_menu_item_order = 0; diff --git a/core/users/users.php b/core/users/users.php index e9da994040..4546d8e3fb 100644 --- a/core/users/users.php +++ b/core/users/users.php @@ -89,7 +89,7 @@ $show = !empty($_GET["show"]) ? $_GET["show"] : ''; //set from session variables - $list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL); + $list_row_edit_button = $settings->get('theme', 'list_row_edit_button', false); //add the search string if (!empty($search)) {