[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] img: Changes in plugin arg parsing now makes the default empty value...

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

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
1882af20 by Jonny Bradley at 2026-03-07T20:36:47+00:00
[FIX] img: Changes in plugin arg parsing now makes the default empty value override the value in the pref (which used to be the default)
Others may aslo need fixing...

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_img.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_img.php
=====================================
@@ -605,7 +605,6 @@ function wikiplugin_img($data, $params)
     $imgdata = [];
     $imgdata['galleryId'] = '';
     $imgdata['alt'] = '';
-    $imgdata['responsive'] = $prefs['image_responsive_class'];
     $imgdata['fromFieldId'] = 0;        // "private" params set by Tracker_Field_Files
     $imgdata['fromItemId']  = 0;        // ditto
     $imgdata['checkItemPerms']  = 'y';  // ditto
@@ -619,6 +618,8 @@ function wikiplugin_img($data, $params)
 
     $imgdata = array_merge($imgdata, $params);
 
+    $imgdata['responsive'] = $imgdata['responsive'] ?: $prefs['image_responsive_class'];
+
     $srcset = '';
     $sizes = '';
 



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

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