[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] sections: Yet another patch trying to fix regressions from !9802 and !9703

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

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


Commits:
c338626e by Jonny Bradley at 2026-06-21T17:49:21+00:00
[FIX] sections: Yet another patch trying to fix regressions from !9802 and !9703
---
* [FIX] sections: Yet another patch to try and fix the seemingly endless regrewssions following !9802 and !9703 (and the rest)
Now that so many things depend on `setCurrentSection`, but that hasn't been added everywhere, we need to set a default section just in case - which will add server overhead but no one else seems to have a better idea, sadly

See merge request tikiwiki/tiki!10568

- - - - -


1 changed file:

- tiki-setup.php


Changes:

=====================================
tiki-setup.php
=====================================
@@ -1025,6 +1025,11 @@ if ($prefs['wikiplugin_addtocart'] == 'y') {
     $headerlib->add_jsfile('lib/payment/cartlib.js');
 }
 
+if (! Sections::getCurrentSection()) {
+    // if nothing else has set the section, set it to global as not all files do
+    Sections::setCurrentSection(Sections::SECTION_GLOBAL);
+}
+
 //////////////////////////////////////////////////////////////////////////
 // ******************************************************************** //
 // ** IMPORTANT NOTE:                                                ** //



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c338626e68d18a86984f8fd9a962fc8555dc933f
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.