]> git.mxchange.org Git - friendica.git/blobdiff - src/Render/FriendicaSmarty.php
Merge pull request #13785 from foss-/patch-11
[friendica.git] / src / Render / FriendicaSmarty.php
index 2ace5688a36fc22e1bf36225ab136da29859bdad..b0861899f3c475c83d2530864a930a3be875c160 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -53,6 +53,10 @@ class FriendicaSmarty extends Smarty
                $this->setConfigDir($work_dir . '/');
                $this->setCacheDir($work_dir . '/');
 
+               $this->registerPlugin('modifier', 'is_string', function ($value) {
+                       return is_string($value);
+               });
+
                /*
                 * Enable sub-directory splitting for reducing directory descriptor
                 * size. The default behavior is to put all compiled/cached files into