[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] sections: skip module computation until tiki-setup.php has finished

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a3bb1565d24d_385e62d3c50096@gitlab-sidekiq-low-urgency-cpu-bound-v2-749c764f6d-gsj4c.mail>

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
ba51e86b by Bernard Sfez at 2026-06-24T10:10:32+00:00
[FIX] sections: skip module computation until tiki-setup.php has finished
---
The cookie consent template fetch triggers module loading before
the section is set, causing section-filtered modules to be
incorrectly rejected. Reinstates the orphaned TIKI_SETUP_FINISHED
guard from cd598936ab.

- - - - -


1 changed file:

- lib/core/Tiki/Smarty/SmartyTiki.php


Changes:

=====================================
lib/core/Tiki/Smarty/SmartyTiki.php
=====================================
@@ -370,7 +370,7 @@ class SmartyTiki extends Smarty
             }
         }
 
-        if (! defined('TIKI_IN_INSTALLER') && ! defined('TIKI_IN_TEST')) {
+        if (! defined('TIKI_IN_INSTALLER') && ! defined('TIKI_IN_TEST') && defined('TIKI_SETUP_FINISHED')) {
             require_once 'tiki-modules.php';
             // Re-assign module_pref_errors after modules are loaded to capture errors from lazy rendering
             if (Perms::get()->admin) {



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ba51e86b76384b3ff2995146bfa5b2e6c9e81376
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.