[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Cypht: missing headers on some of the Tiki modules - load base page with...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68ee55c7889c1_2ce0cb8850c2@gitlab-sidekiq-low-urgency-cpu-bound-v2-89cf9c75d-6hrw9.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
a8ea9264 by Victor Emanouilov at 2025-10-14T16:49:21+03:00
[FIX] Cypht: missing headers on some of the Tiki modules - load base page with core modules loading properly

- - - - -


2 changed files:

- lib/cypht/integration/Tiki_Hm_Output_HTTP.php
- lib/cypht/modules/tiki/setup.php


Changes:

=====================================
lib/cypht/integration/Tiki_Hm_Output_HTTP.php
=====================================
@@ -8,11 +8,7 @@ class Tiki_Hm_Output_HTTP
 {
     public function send_response($response, $input = [])
     {
-        if (array_key_exists('http_headers', $input)) {
-            return $this->output_content($response, $input['http_headers']);
-        } else {
-            return $this->output_content($response, []);
-        }
+        return $this->output_content($response, $input['http_headers'] ?? []);
     }
 
     protected function output_headers($headers)


=====================================
lib/cypht/modules/tiki/setup.php
=====================================
@@ -23,7 +23,7 @@ add_handler('ajax_hm_folders', 'check_groupmail_setting', true, 'tiki', 'load_us
 add_output('ajax_hm_folders', 'groupmail_page_link', true, 'tiki', 'main_menu_content', 'before');
 
 /* ajax groupmail callback data */
-setup_base_ajax_page('ajax_tiki_groupmail', 'imap');
+setup_base_ajax_page('ajax_tiki_groupmail', 'core');
 add_handler('ajax_tiki_groupmail', 'prepare_groupmail_settings', true, 'imap', 'load_user_data', 'after');
 add_handler('ajax_tiki_groupmail', 'load_imap_servers_from_config', true, 'imap');
 add_handler('ajax_tiki_groupmail', 'imap_oauth2_token_check', true, 'imap');
@@ -222,10 +222,10 @@ add_handler('ajax_imap_unread', 'tiki_process_imap_unread', true, 'tiki', 'imap_
 add_handler('settings', 'process_tiki_run_sieve_filters_on_imap_unread', true, 'tiki', 'save_user_settings', 'before');
 add_output('settings', 'tiki_run_sieve_filters_on_imap_unread_setting', true, 'tiki', 'enable_gmail_contacts_module_setting', 'after');
 
-setup_base_ajax_page('ajax_tiki_msg_tracker_items', 'tiki');
+setup_base_ajax_page('ajax_tiki_msg_tracker_items', 'core');
 add_handler('ajax_tiki_msg_tracker_items', 'get_msg_tracker_items', true, 'tiki');
 
-setup_base_page('ajax_tiki_auto_move_reply_to_tracker', 'tiki');
+setup_base_page('ajax_tiki_auto_move_reply_to_tracker', 'core');
 add_handler('ajax_tiki_auto_move_reply_to_tracker', 'auto_move_reply_to_tracker', true, 'tiki');
 
 return [



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a8ea92647c49bc0ebf48bbd7e04ad32d4f7430d3

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a8ea92647c49bc0ebf48bbd7e04ad32d4f7430d3
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.