equal
deleted
inserted
replaced
103 $page->password = $password; |
103 $page->password = $password; |
104 $have_draft = false; |
104 $have_draft = false; |
105 if ( $src = $page->fetch_source() ) |
105 if ( $src = $page->fetch_source() ) |
106 { |
106 { |
107 $allowed = true; |
107 $allowed = true; |
108 $q = $db->sql_query('SELECT author, time_id, page_text FROM ' . table_prefix . 'logs WHERE log_type = \'page\' AND action = \'edit\' |
108 $q = $db->sql_query('SELECT author, time_id, page_text, edit_summary FROM ' . table_prefix . 'logs WHERE log_type = \'page\' AND action = \'edit\' |
109 AND page_id = \'' . $db->escape($paths->page_id) . '\' |
109 AND page_id = \'' . $db->escape($paths->page_id) . '\' |
110 AND namespace = \'' . $db->escape($paths->namespace) . '\' |
110 AND namespace = \'' . $db->escape($paths->namespace) . '\' |
111 AND is_draft = 1;'); |
111 AND is_draft = 1;'); |
112 if ( !$q ) |
112 if ( !$q ) |
113 $db->die_json(); |
113 $db->die_json(); |
150 $return['draft_author'] = $row['author']; |
150 $return['draft_author'] = $row['author']; |
151 $return['draft_time'] = enano_date('d M Y h:i a', intval($row['time_id'])); |
151 $return['draft_time'] = enano_date('d M Y h:i a', intval($row['time_id'])); |
152 if ( isset($_GET['get_draft']) && @$_GET['get_draft'] === '1' ) |
152 if ( isset($_GET['get_draft']) && @$_GET['get_draft'] === '1' ) |
153 { |
153 { |
154 $return['src'] = $row['page_text']; |
154 $return['src'] = $row['page_text']; |
|
155 $return['edit_summary'] = $row['edit_summary']; |
155 } |
156 } |
156 } |
157 } |
157 |
158 |
158 if ( $revid > 0 ) |
159 if ( $revid > 0 ) |
159 { |
160 { |