Commit 0433ea6c authored by nkoth's avatar nkoth

[MOD] Make regex more readable

parent f24a519c
......@@ -93,7 +93,7 @@ function wikiplugin_list($data, $params)
} elseif (isset($arguments['wiki'])) {
$wikitpl = "wiki:" . $arguments['wiki'];
$wikicontent = TikiLib::lib('smarty')->fetch($wikitpl);
$wikicontent = preg_replace("/\{\\$([^\}]+)\}/", "{display name=\\1}", $wikicontent);
$wikicontent = preg_replace('/\{\$([^\}]+)\}/', '{display name=\\1}', $wikicontent);
$plugin = new Search_Formatter_Plugin_WikiTemplate($wikicontent);
} else {
$plugin = new Search_Formatter_Plugin_WikiTemplate($output->getBody());
......
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