# HG changeset patch # User Dan # Date 1182909463 14400 # Node ID 08d0278829937fad20c993c89cbcf6119f783887 # Parent 9ecc94c4c7f5eeff90279be638862c996bba6d45 Fixed invalid HTML caused by wikitext processor on non-templated pages diff -r 9ecc94c4c7f5 -r 08d027882993 includes/pageprocess.php --- a/includes/pageprocess.php Tue Jun 26 21:49:46 2007 -0400 +++ b/includes/pageprocess.php Tue Jun 26 21:57:43 2007 -0400 @@ -312,7 +312,14 @@ echo '
Notice:
The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.
View current version | Restore this version

'; } - $text = '?>' . RenderMan::render($text); + if ( $incl_inner_headers ) + { + $text = '?>' . RenderMan::render($text); + } + else + { + $text = '?>' . $text; + } // echo('
'.htmlspecialchars($text).'
'); eval ( $text );