From 7079cae2e232c7f8fc6f0113be7cad42b47097ff Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Tue, 21 Sep 2004 18:20:56 +0000 Subject: [PATCH] use comments instead of __ so we don't scare the users if erroneous ones creep in --- includes/Parser.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 = ''; -- 2.20.1