[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] PluginCategory: restore language filtering behavior for lang parameter

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69bc30fce40a7_3b18d03077e5@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d9674946b-k6tbw.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
f6ff5f42 by Bruno Kambere at 2026-03-19T17:15:49+00:00
[FIX] PluginCategory: restore language filtering behavior for lang parameter
---
* [FIX] PluginCategory: restore language filtering behavior for lang parameter

See merge request tikiwiki/tiki!9790

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_category.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_category.php
=====================================
@@ -221,7 +221,6 @@ function wikiplugin_category_info()
                 ),
                 'since' => '8.0',
                 'filter' => 'lang',
-                'default' => '',
             ],
         ],
     ];
@@ -242,7 +241,14 @@ function wikiplugin_category($data, $params)
     $split = strtolower($split) == 'y';
     $sub = strtolower($sub) == 'y';
     $and = strtolower($and) == 'y';
-    $filter['language'] = $lang ?: Language::getCurrentLanguage();
+
+    if (! empty($lang)) {
+        $filter['language'] = $lang;
+    } elseif (isset($params['lang'])) {
+        $filter['language'] = Language::getCurrentLanguage();
+    } else {
+        $filter = null;
+    }
 
     if (! empty($sort)) {
         $list = explode(',', $sort);



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

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