[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Modlib: Add missing cache_time default value in module execution

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68b7e8933d7bd_2cdd0188826c@gitlab-sidekiq-low-urgency-cpu-bound-v2-6d5d96f55f-68phx.mail>

Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
1c2e5352 by Aksanti Bahiga at 2025-09-03T09:57:04+03:00
[BP][FIX] Modlib: Add missing cache_time default value in module execution
---
* [FIX] Modlib: Add missing cache_time default value in module execution
---
* [FIX] Add missing cache_time default value in module execution

See merge request tikiwiki/tiki!8133

(cherry picked from commit e84ea02f0cd469676fc36a7a3a6022a839dd69a4)

See merge request tikiwiki/tiki!8479

- - - - -


1 changed file:

- lib/modules/modlib.php


Changes:

=====================================
lib/modules/modlib.php
=====================================
@@ -1118,7 +1118,7 @@ class ModLib extends TikiLib
             $module_params = isset($mod_reference['params']) ? (array) $mod_reference['params'] : [];
             $module_params = array_merge($defaults, $module_params); // not sure why style doesn't get set sometime but is used in the tpl
 
-            $mod_reference = array_merge(['moduleId' => null, 'ord' => 0, 'position' => 0, 'rows' => 10], $mod_reference);
+            $mod_reference = array_merge(['moduleId' => null, 'ord' => 0, 'position' => 0, 'rows' => 10, 'cache_time' => 0], $mod_reference);
 
             $info = $this->get_module_info($mod_reference);
             $cachefile = $this->get_cache_file($mod_reference, $info);



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1c2e53528c5fc5a6f89ea98f3c0eb899715adb8d
You're receiving this email because of your account on gitlab.com.

_______________________________________________
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.