includes/pageprocess.php
changeset 1180 4829d15d2782
parent 1175 1e2c9819ede3
child 1216 4125e19d3b27
equal deleted inserted replaced
1179:ac861c01a764 1180:4829d15d2782
   867     // Log the action
   867     // Log the action
   868     $username = $db->escape($session->username);
   868     $username = $db->escape($session->username);
   869     $page_name = $db->escape($page_name);
   869     $page_name = $db->escape($page_name);
   870     $time = time();
   870     $time = time();
   871     
   871     
   872     $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs ( log_type, action, page_id, namespace, author, edit_summary, time_id, date_string ) VALUES\n"
   872     $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs ( log_type, action, page_id, namespace, author, author_uid, edit_summary, time_id, date_string ) VALUES\n"
   873                       . "  ( 'page', 'rename', '{$this->page_id}', '{$this->namespace}', '$username', '$page_name', '$time', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );");
   873                       . "  ( 'page', 'rename', '{$this->page_id}', '{$this->namespace}', '$username', $session->user_id, '$page_name', '$time', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );");
   874     if ( !$q )
   874     if ( !$q )
   875       $db->_die();
   875       $db->_die();
   876     
   876     
   877     // Not much to do but to rename it now
   877     // Not much to do but to rename it now
   878     $new_name = $db->escape($new_name);
   878     $new_name = $db->escape($new_name);