Fixed no author_uid in PageProcessor::rename_page()
authorDan
Fri, 18 Dec 2009 21:01:09 -0500
changeset 1180 4829d15d2782
parent 1179 ac861c01a764
child 1181 91911e183685
Fixed no author_uid in PageProcessor::rename_page()
includes/pageprocess.php
--- a/includes/pageprocess.php	Fri Dec 18 20:57:28 2009 -0500
+++ b/includes/pageprocess.php	Fri Dec 18 21:01:09 2009 -0500
@@ -869,8 +869,8 @@
     $page_name = $db->escape($page_name);
     $time = time();
     
-    $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs ( log_type, action, page_id, namespace, author, edit_summary, time_id, date_string ) VALUES\n"
-                      . "  ( 'page', 'rename', '{$this->page_id}', '{$this->namespace}', '$username', '$page_name', '$time', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );");
+    $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"
+                      . "  ( 'page', 'rename', '{$this->page_id}', '{$this->namespace}', '$username', $session->user_id, '$page_name', '$time', 'DATE_STRING COLUMN OBSOLETE, USE time_id' );");
     if ( !$q )
       $db->_die();