diff options
author | friendica <info@friendica.com> | 2013-10-28 17:48:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-10-28 17:48:42 -0700 |
commit | 1380bee82caad1dce6ffda7c35cb4ce3e94911f2 (patch) | |
tree | bfdd2d502202111c2216ad8ece2a223abc005526 /include/comanche.php | |
parent | 1bf6591e1b98ef6704ee1bab72bad7dca7ab301f (diff) | |
download | volse-hubzilla-1380bee82caad1dce6ffda7c35cb4ce3e94911f2.tar.gz volse-hubzilla-1380bee82caad1dce6ffda7c35cb4ce3e94911f2.tar.bz2 volse-hubzilla-1380bee82caad1dce6ffda7c35cb4ce3e94911f2.zip |
Comanche documentation and some cleanup of layout page (including link to doco) and a few other webpage related cleanups
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php index 4b8a1d170..7d7e0e70c 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -46,6 +46,12 @@ function pdl_selector($uid,$current="") { function comanche_parser(&$a,$s) { + $cnt = preg_match_all("/\[comment\](.*?)\[\/comment\]/ism", $s, $matches, PREG_SET_ORDER); + if($cnt) { + foreach($matches as $mtch) { + $s = str_replace($mtch[0],'',$s); + } + } $cnt = preg_match("/\[layout\](.*?)\[\/layout\]/ism", $s, $matches); if($cnt) |