ajax.php
changeset 417 b76ebe229548
parent 416 53fcdf309a82
child 419 b8b4e38825db
--- a/ajax.php	Tue Feb 12 07:33:25 2008 -0500
+++ b/ajax.php	Tue Feb 12 07:38:52 2008 -0500
@@ -105,7 +105,7 @@
       if ( $src = $page->fetch_source() )
       {
         $allowed = true;
-        $q = $db->sql_query('SELECT author, time_id, page_text FROM ' . table_prefix . 'logs WHERE log_type = \'page\' AND action = \'edit\'
+        $q = $db->sql_query('SELECT author, time_id, page_text, edit_summary FROM ' . table_prefix . 'logs WHERE log_type = \'page\' AND action = \'edit\'
                                AND page_id = \'' . $db->escape($paths->page_id) . '\'
                                AND namespace = \'' . $db->escape($paths->namespace) . '\'
                                AND is_draft = 1;');
@@ -152,6 +152,7 @@
         if ( isset($_GET['get_draft']) && @$_GET['get_draft'] === '1' )
         {
           $return['src'] = $row['page_text'];
+          $return['edit_summary'] = $row['edit_summary'];
         }
       }