[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] param: Ensure 'name' parameter is required because the plugin does...

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

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


Commits:
af7df32f by Jonny Bradley at 2026-03-21T15:04:31+00:00
[FIX] param: Ensure 'name' parameter is required because the plugin does nothing if the name is not specified
Partial revert of !8616 - no need to preserve buggy and senseless behaviour (imho)


(cherry picked from commit 151ebe04edec2c4911c5c455cdb3d0dfd93ccf77)

Co-authored-by: jonnybradley <[email protected]>
- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_param.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_param.php
=====================================
@@ -18,7 +18,7 @@ function wikiplugin_param_info()
         'introduced' => 7,
         'params' => [
             'name' => [
-                'required' => false,
+                'required' => true,
                 'name' => tra('Name'),
                 'description' => tr('Names of parameters required to display text, separated by %0|%1.', '<code>', '</code>'),
                 'since' => '7.0',
@@ -70,7 +70,6 @@ function wikiplugin_param($data, $params)
         $params['source'] = 'request';
     }
 
-    $params['name'] = ! is_null($params['name']) ? $params['name'] : [];
     foreach ($params['name'] as $name) {
         $value = null;
         switch ($params['source']) {



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

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