diff plugins/rc_foldersort/rc_foldersort.php @ 42:db1e51c59ddc

various small fixes from upgrades to PHP and/or hangover from fix to apt-get overwrite at beginning of the year somehow
author Charlie Root
date Sun, 26 Jan 2025 13:12:28 -0500
parents d41c01c5c933
children
line wrap: on
line diff
--- a/plugins/rc_foldersort/rc_foldersort.php	Fri Jan 24 14:20:15 2025 -0500
+++ b/plugins/rc_foldersort/rc_foldersort.php	Sun Jan 26 13:12:28 2025 -0500
@@ -172,8 +172,8 @@
     public function preferences_save_hook($args)
     {
         if ($args['section'] == 'mailbox') {
-            $folder_sort_col                  = rcube_utils::get_input_value('_default_sort_col', RCUBE_INPUT_POST);
-            $folder_sort_order                = rcube_utils::get_input_value('_default_sort_order', RCUBE_INPUT_POST);
+            $folder_sort_col                  = rcube_utils::get_input_value('_default_sort_col', rcube_utils::INPUT_POST);
+            $folder_sort_order                = rcube_utils::get_input_value('_default_sort_order', rcube_utils::INPUT_POST);
             $folder_sort                      = $folder_sort_col . '_' . $folder_sort_order;
             $folder_sorts                     = $this->sort_order;
             $folder_sorts['default']          = $folder_sort;
@@ -185,10 +185,10 @@
 
     public function sort_json_action()
     {
-        $cmd    = rcube_utils::get_input_value('cmd', RCUBE_INPUT_POST);
-        $folder = rcube_utils::get_input_value('folder', RCUBE_INPUT_POST);
-        $col    = rcube_utils::get_input_value('col', RCUBE_INPUT_POST);
-        $order  = rcube_utils::get_input_value('order', RCUBE_INPUT_POST);
+        $cmd    = rcube_utils::get_input_value('cmd', rcube_utils::INPUT_POST);
+        $folder = rcube_utils::get_input_value('folder', rcube_utils::INPUT_POST);
+        $col    = rcube_utils::get_input_value('col', rcube_utils::INPUT_POST);
+        $order  = rcube_utils::get_input_value('order', rcube_utils::INPUT_POST);
 
         switch ($cmd) {
             case 'change_session': {