[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 | <69fcbb008ddb3_3838d930448022@gitlab-sidekiq-low-urgency-cpu-bound-v2-74cfb7f9d4-qgn4l.mail> |
Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
d443414e by Jonny Bradley at 2026-05-07T15:59:39+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
- - - - -
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/d443414eb76e400189fda5525566c0a15424c2c8
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d443414eb76e400189fda5525566c0a15424c2c8
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