Fixed invalid HTML caused by wikitext processor on non-templated pages
authorDan
Tue, 26 Jun 2007 21:57:43 -0400
changeset 25 08d027882993
parent 24 9ecc94c4c7f5
child 26 acf6f55bf023
Fixed invalid HTML caused by wikitext processor on non-templated pages
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 '<div class="info-box" style="margin-left: 0; margin-top: 5px;"><b>Notice:</b><br />The page you are viewing was archived on '.date('F d, Y \a\t h:i a', $this->revision_id).'.<br /><a href="'.makeUrlNS($this->namespace, $this->page_id).'" onclick="ajaxReset(); return false;">View current version</a>  |  <a href="'.makeUrlNS($this->namespace, $this->pageid, 'do=rollback&amp;id='.$this->revision_id).'" onclick="ajaxRollback(\''.$this->revision_id.'\')">Restore this version</a></div><br />';
     }
     
-    $text = '?>' . RenderMan::render($text);
+    if ( $incl_inner_headers )
+    {
+      $text = '?>' . RenderMan::render($text);
+    }
+    else
+    {
+      $text = '?>' . $text;
+    }
     // echo('<pre>'.htmlspecialchars($text).'</pre>');
     eval ( $text );