changeset 1175 | 1e2c9819ede3 |
parent 1162 | daa091452877 |
child 1227 | bdac73ed481e |
1174:def792dd9b1b | 1175:1e2c9819ede3 |
---|---|
246 ); |
246 ); |
247 } |
247 } |
248 else |
248 else |
249 { |
249 { |
250 // Save the draft |
250 // Save the draft |
251 $q = $db->sql_query('INSERT INTO ' . table_prefix . 'logs ( log_type, action, page_id, namespace, author, edit_summary, page_text, is_draft, time_id, page_format ) |
251 $q = $db->sql_query('INSERT INTO ' . table_prefix . 'logs ( log_type, action, page_id, namespace, author, author_uid, edit_summary, page_text, is_draft, time_id, page_format ) |
252 VALUES ( |
252 VALUES ( |
253 \'page\', |
253 \'page\', |
254 \'edit\', |
254 \'edit\', |
255 \'' . $db->escape($paths->page_id) . '\', |
255 \'' . $db->escape($paths->page_id) . '\', |
256 \'' . $db->escape($paths->namespace) . '\', |
256 \'' . $db->escape($paths->namespace) . '\', |
257 \'' . $db->escape($session->username) . '\', |
257 \'' . $db->escape($session->username) . '\', |
258 ' . $session->user_id . ', |
|
258 \'' . $db->escape($request['summary']) . '\', |
259 \'' . $db->escape($request['summary']) . '\', |
259 \'' . $db->escape($src) . '\', |
260 \'' . $db->escape($src) . '\', |
260 1, |
261 1, |
261 ' . time() . ', |
262 ' . time() . ', |
262 \'' . $draft_format . '\' |
263 \'' . $draft_format . '\' |