X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FRender%2FFriendicaSmarty.php;h=1df1ffe4a8a09d9d90e1ad104c58ded6c845777c;hb=d971a2cc5c11f0ef7ef857cad1c66005d67f4923;hp=13ff6234e26dbdd754b99c1482d893228e1f5f86;hpb=63e1ad7dba93187286ec9852c7321a38e3e8a9b2;p=friendica.git diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 13ff6234e2..1df1ffe4a8 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -1,6 +1,6 @@ 'view/' . self::SMARTY3_TEMPLATE_FOLDER . '/']; $this->setTemplateDir($template_dirs); - + $work_dir = rtrim($work_dir, '/'); $this->setCompileDir($work_dir . '/compiled'); $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