From 1380bee82caad1dce6ffda7c35cb4ce3e94911f2 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 28 Oct 2013 17:48:42 -0700 Subject: Comanche documentation and some cleanup of layout page (including link to doco) and a few other webpage related cleanups --- include/comanche.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/comanche.php') 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) -- cgit v1.2.3