[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] PluginCategory: restore language filtering behavior for lang parameter

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69bc56025f896_3b18d3a0330f4@gitlab-sidekiq-low-urgency-cpu-bound-v2-747fdbc477-px9nc.mail>

Bruno Kambere pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
1747dfa0 by Bruno Kambere at 2026-03-19T21:52:43+02:00
[BP][FIX] PluginCategory: restore language filtering behavior for lang parameter
---
* [BP][FIX] PluginCategory: restore language filtering behavior for lang parameter
---
* [FIX] PluginCategory: restore language filtering behavior for lang parameter
---
* [FIX] PluginCategory: restore language filtering behavior for lang parameter

See merge request tikiwiki/tiki!9790

See merge request tikiwiki/tiki!9797

See merge request tikiwiki/tiki!9799

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_category.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_category.php
=====================================
@@ -222,7 +222,6 @@ function wikiplugin_category_info()
                 ),
                 'since' => '8.0',
                 'filter' => 'lang',
-                'default' => '',
             ],
         ],
     ];
@@ -255,8 +254,10 @@ function wikiplugin_category($data, $params)
     }
     if (! empty($lang)) {
         $filter['language'] = $lang;
-    } else {
+    } elseif (isset($params['lang'])) {
         $filter['language'] = Language::getCurrentLanguage();
+    } else {
+        $filter = null;
     }
 
     if (isset($and) and substr(strtolower($and), 0, 1) == 'y') {



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

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