includes/pageprocess.php
changeset 25 08d027882993
parent 24 9ecc94c4c7f5
child 26 acf6f55bf023
--- 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 );