diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-19 17:34:04 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-19 17:34:04 +0000 |
commit | 0417481fb1814b67e544e51d235cc2d5697dc75c (patch) | |
tree | bf7d46ad994df2d6e282ce479235399269409e6e /h-source/Application/Include | |
parent | ba62152bfdad584c231dc3e941cd1974dd5d881c (diff) |
improved wiki formatting: added a way to describe the wiki tags without apply them - Luis Alberto (Ark74) issue
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 44b926b..61c2ec2 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -270,6 +270,10 @@ function decodeWikiText($string) $string = preg_replace_callback('/(\[tab )(lang=)([^\s]+)(\s*\])(.*?)(\[\/tab\])/s', 'createTabs',$string); $string = preg_replace('/(\[lang\])(.*?)(\[\/lang\])/s', '<div class="div_lang">${2}</div>',$string); + + $string = preg_replace('/(\{\{)/s', '[',$string); + + $string = preg_replace('/(\}\})/s', ']',$string); return Tabs::render()."\n\n".$string; } |