[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] forums: Fix fatal error when "freetags" were enabled

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69fcbbc0885bb_381900f055e@gitlab-sidekiq-low-urgency-cpu-bound-v2-74cfb7f9d4-89kvk.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
4ee5290e by Jonny Bradley at 2026-05-07T16:20:13+00:00
[FIX] forums: Fix fatal error when "freetags" were enabled
---
* [FIX] forums: Fix fatal error when "freetags" were enabled
I think another casualty of !8658 because now the code in `lib/setup/freetags.php` fails to run as now `$section` is only set after tiki-setup.php runs and is needed within it.

See merge request tikiwiki/tiki!10162


(cherry picked from commit d443414eb76e400189fda5525566c0a15424c2c8)

9d297718 [FIX] forums: Fix fatal error when "freetags" were enabled

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


1 changed file:

- tiki-view_forum_thread.php


Changes:

=====================================
tiki-view_forum_thread.php
=====================================
@@ -383,7 +383,7 @@ if ($tiki_p_admin_forum == 'y') {
 if ($prefs['feature_freetags'] == 'y') {
     $cat_type = 'forum post';
     $cat_objid = $comments_parentId;
-    $objectTags = $freetaglib->get_tags_on_object($cat_objid, $cat_type);
+    $objectTags = TikiLib::lib('freetag')->get_tags_on_object($cat_objid, $cat_type);
     $tags = [];
     if ($objectTags) {
         $tags = $objectTags['data'];



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

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