From: River Tarnell Date: Tue, 21 Sep 2004 18:20:56 +0000 (+0000) Subject: use comments instead of __ so we don't scare the users if erroneous ones creep in X-Git-Tag: 1.5.0alpha1~1909 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=7079cae2e232c7f8fc6f0113be7cad42b47097ff;p=lhc%2Fweb%2Fwiklou.git use comments instead of __ so we don't scare the users if erroneous ones creep in --- diff --git a/includes/Parser.php b/includes/Parser.php index 8223bea309..12756481df 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1862,13 +1862,13 @@ class Parser $text .= $matches[$i]; $hl = $matches[$i + 1]; if ($hl == "") continue; - if( strstr($hl, "__MWTEMPLATESECTION") ) { + if( strstr($hl, "" . $m2[3]; $nsec++; } @@ -2165,11 +2165,11 @@ class Parser $templatetitle = ""; $templatesection = 0; - if (preg_match("/__MWTEMPLATESECTION=([^&]+)&([^_]+)__/", $headline, $mat)) { + if (preg_match("//", $headline, $mat)) { $istemplate = 1; $templatetitle = base64_decode($mat[1]); $templatesection = 1 + (int)base64_decode($mat[2]); - $headline = preg_replace("/__MWTEMPLATESECTION=([^&]+)&([^_]+)__/", "", $headline); + $headline = preg_replace("//", "", $headline); } $numbering = '';