Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1862,13 +1862,13 @@ |
1863 | 1863 | $text .= $matches[$i]; |
1864 | 1864 | $hl = $matches[$i + 1]; |
1865 | 1865 | if ($hl == "") continue; |
1866 | | - if( strstr($hl, "__MWTEMPLATESECTION") ) { |
| 1866 | + if( strstr($hl, "<!--MWTEMPLATESECTION") ) { |
1867 | 1867 | $text .= $hl; |
1868 | 1868 | continue; |
1869 | 1869 | } |
1870 | 1870 | preg_match('/^(={1,6})(.*?)(={1,6})\s*?$/m', $hl, $m2); |
1871 | | - $text .= $m2[1] . $m2[2] . "__MWTEMPLATESECTION=" |
1872 | | - . $encodedname . "&" . base64_encode("$nsec") . "__" . $m2[3]; |
| 1871 | + $text .= $m2[1] . $m2[2] . "<!--MWTEMPLATESECTION=" |
| 1872 | + . $encodedname . "&" . base64_encode("$nsec") . "-->" . $m2[3]; |
1873 | 1873 | |
1874 | 1874 | $nsec++; |
1875 | 1875 | } |
— | — | @@ -2165,11 +2165,11 @@ |
2166 | 2166 | $templatetitle = ""; |
2167 | 2167 | $templatesection = 0; |
2168 | 2168 | |
2169 | | - if (preg_match("/__MWTEMPLATESECTION=([^&]+)&([^_]+)__/", $headline, $mat)) { |
| 2169 | + if (preg_match("/<!--MWTEMPLATESECTION=([^&]+)&([^_]+)-->/", $headline, $mat)) { |
2170 | 2170 | $istemplate = 1; |
2171 | 2171 | $templatetitle = base64_decode($mat[1]); |
2172 | 2172 | $templatesection = 1 + (int)base64_decode($mat[2]); |
2173 | | - $headline = preg_replace("/__MWTEMPLATESECTION=([^&]+)&([^_]+)__/", "", $headline); |
| 2173 | + $headline = preg_replace("/<!--MWTEMPLATESECTION=([^&]+)&([^_]+)-->/", "", $headline); |
2174 | 2174 | } |
2175 | 2175 | |
2176 | 2176 | $numbering = ''; |