From cf9a0125d5a4a547a30208d76fad8dbef9496d9e Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 9 Apr 2004 07:31:35 +0000 Subject: [PATCH] new global UNIQ_PREFIX used to init $uniq_prefix in two functions. It prevented the doBlockLevels to parse the escaped
 tag.

---
 includes/Parser.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/includes/Parser.php b/includes/Parser.php
index 1185a73417..d6dde5b785 100644
--- a/includes/Parser.php
+++ b/includes/Parser.php
@@ -43,6 +43,9 @@ define( "OT_HTML", 1 );
 define( "OT_WIKI", 2 );
 define( "OT_MSG", 3 );
 
+# prefix for escaping, used in two functions at least
+define( "UNIQ_PREFIX", "NaodW29");
+
 class Parser
 {
 	# Cleared with clearState():
@@ -141,7 +144,7 @@ class Parser
 		$pre_content = array();
 
 		# Replace any instances of the placeholders
-		$uniq_prefix = "NaodW29";
+		$uniq_prefix = UNIQ_PREFIX;
 		$text = str_replace( $uniq_prefix, wfHtmlEscapeFirst( $uniq_prefix ), $text );
 
 		$text = Parser::extractTags("nowiki", $text, $nowiki_content, $uniq_prefix);
@@ -1026,6 +1029,7 @@ class Parser
 				$lastPref = $pref2;
 			}
 			if ( 0 == $npl ) { # No prefix--go to paragraph mode
+				$uniq_prefix = UNIQ_PREFIX;
 				if ( preg_match(
 				  "/(closeParagraph();
-- 
2.20.1