+
+ function handler_wiki_help(&$page, $action = 'title')
+ {
+ $page->changeTpl('core/wiki.help.tpl', SIMPLE);
+ $page->assign('wiki_help', MiniWiki::help($action == 'title'));
+ }
+
+ /// Shared handler for wiki syntax result preview
+ function handler_wiki_preview(&$page, $action = 'title')
+ {
+ header('Content-Type: text/html; charset=utf-8');
+ $text = Get::v('text');
+ echo MiniWiki::wikiToHtml($text, $action == 'title');
+ exit;
+ }