Siropu
Well-known member
- Affected version
- 2.3.5
Using the following code,
renderTemplate
will load the original version instead of the modified version.
PHP:
$templater = \XF::app()->templater();
$templater->addDefaultParam('xf', \XF::app()->getGlobalTemplateData());
$templater->renderTemplate('public:modified_template_name');