[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] webservices: Fix the parsing/compilation of templates for webservices

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69bc69e237e6c_3b198e58477aa@gitlab-sidekiq-low-urgency-cpu-bound-v2-75c79f77f-jq8df.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
989943b2 by Jonny Bradley at 2026-03-19T21:18:27+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

- - - - -


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/989943b23e19a05adc5d0e618ecd5b6471805ab5

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