Index: trunk/phase3/includes/parser/StripState.php |
— | — | @@ -107,6 +107,9 @@ |
108 | 108 | if ( isset( $this->data[$this->tempType][$m[1]] ) ) { |
109 | 109 | return $this->data[$this->tempType][$m[1]]; |
110 | 110 | } else { |
| 111 | + if( preg_match( $this->regex, $m[0] ) ) { |
| 112 | + return "<strong class='error'>".htmlspecialchars( wfMsg( "stripstate-error" ) )."</strong>"; |
| 113 | + } |
111 | 114 | return $m[0]; |
112 | 115 | } |
113 | 116 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -4471,6 +4471,7 @@ |
4472 | 4472 | # Core parser functions |
4473 | 4473 | 'unknown_extension_tag' => 'Unknown extension tag "$1"', |
4474 | 4474 | 'duplicate-defaultsort' => '\'\'\'Warning:\'\'\' Default sort key "$2" overrides earlier default sort key "$1".', |
| 4475 | +'stripstate-error' => 'unstripCallback called with strip markers still intact. Please fix your markup.', |
4475 | 4476 | |
4476 | 4477 | # Special:Version |
4477 | 4478 | 'version' => 'Version', |