includes/pageutils.php
changeset 115 261f367623af
parent 112 008b1c42be72
child 142 ca9118d9c0f2
--- a/includes/pageutils.php	Tue Sep 04 08:25:48 2007 -0400
+++ b/includes/pageutils.php	Tue Sep 04 12:52:23 2007 -0400
@@ -509,6 +509,9 @@
       
       echo '<form action="'.makeUrlNS($namespace, $page_id, 'do=diff').'" onsubmit="ajaxHistDiff(); return false;" method="get">
             <input type="submit" value="Compare selected revisions" />
+            ' . ( urlSeparator == '&' ? '<input type="hidden" name="title" value="' . htmlspecialchars($paths->nslist[$namespace] . $page_id) . '" />' : '' ) . '
+            ' . ( $session->sid_super ? '<input type="hidden" name="auth"  value="' . $session->sid_super . '" />' : '') . '
+            <input type="hidden" name="do" value="diff" />
             <br /><span>&nbsp;</span>
             <div class="tblholder">
             <table border="0" width="100%" cellspacing="1" cellpadding="4">