Commit 27a105a3 authored by nkoth's avatar nkoth

[FIX] Delay wiki parsing till later since included template will be parsed...

[FIX] Delay wiki parsing till later since included template will be parsed anyway later, otherwise plugins will not get proper display variables inserted before parsing
parent 89cb4f79
......@@ -91,7 +91,7 @@ function wikiplugin_list($data, $params)
$plugin = new Search_Formatter_Plugin_SmartyTemplate($arguments['template']);
$plugin->setData($builder->getData($output->getBody()));
} elseif (isset($arguments['wiki'])) {
$wikitpl = "wiki:" . $arguments['wiki'];
$wikitpl = "tplwiki:" . $arguments['wiki'];
$wikicontent = TikiLib::lib('smarty')->fetch($wikitpl);
$wikicontent = preg_replace('/\{\$([^\}]+)\}/', '{display name=\\1}', $wikicontent);
$plugin = new Search_Formatter_Plugin_WikiTemplate($wikicontent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment