[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <69d51cc86e5b8_3b191194354ba@gitlab-sidekiq-low-urgency-cpu-bound-v2-797d8668fd-g24ms.mail>

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


Commits:
5a37dc92 by Jonny Bradley at 2026-04-07T15:03:33+00:00
[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 tikiwiki/tiki!9798


(cherry picked from commit 989943b23e19a05adc5d0e618ecd5b6471805ab5)

ff6282b0 [FIX] webservices: Fix the parsing/compilation of templates for webservices,...

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


1 changed file:

- lib/core/Tiki/Smarty/SmartyTiki.php


Changes:

=====================================
lib/core/Tiki/Smarty/SmartyTiki.php
=====================================
@@ -745,6 +745,11 @@ class SmartyTiki extends 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/5a37dc9281dee11fa452a9d1afdc01bbe31649fb

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