[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] webservices: Fix the parsing/compilation of templates for webservices
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69d521a26932c_3b1910e0703d4@gitlab-sidekiq-low-urgency-cpu-bound-v2-797d8668fd-k6qj2.mail> |
Jonny Bradley pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
36aee72a by Jonny Bradley at 2026-04-07T15:16:32+00:00
[BP][FIX] webservices: Fix the parsing/compilation of templates for webservices
---
* [FIX] webservices: Fix the parsing/compilation of templates for webservices, lost in the upgrade to Smarty 5
See merge request !9798
(cherry picked from commit 989943b2)
(cherry picked from commit 5a37dc92)
(manually cherry picked from 27c89e89)
See merge request tikiwiki/tiki!9967
- - - - -
1 changed file:
- lib/init/smarty.php
Changes:
=====================================
lib/init/smarty.php
=====================================
@@ -769,6 +769,11 @@ class Smarty_Tiki extends \Smarty\Smarty
$this->addLayoutTemplatesFromTemplatePath(SMARTY_TEMPLATES_PATH);
$this->addTemplateDir($this->main_template_dir);
+ // webservices create temporary templates
+ if ($prefs['feature_webservices'] === 'y') {
+ $this->addTemplateDir(realpath(TEMP_CACHE_PATH));
+ }
+
//Test templates
$this->addTemplateDir(TIKI_PATH . '/lib/test/core/Search/');
//var_dump($this->getTemplateDir());
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/36aee72a7af84a1c63451359f874cef4de9b76be
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/36aee72a7af84a1c63451359f874cef4de9b76be
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