From a5af6444087d4ff1dbd8a7abd00c70483bad7446 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 28 Feb 2009 19:10:37 +0000 Subject: [PATCH] log dump tweak: only select user_name from user table --- includes/Export.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Export.php b/includes/Export.php index 31b2b9c867..faa11f0076 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -184,8 +184,10 @@ class WikiExporter { # Hide private logs $where[] = LogEventsList::getExcludeClause( $this->db ); if( $cond ) $where[] = $cond; + # Get logging table name for logging.* clause + $logging = $this->db->tableName('logging'); $result = $this->db->select( array('logging','user'), - '*', + array( "{$logging}.*", 'user_name' ), // grab the user name $where, $fname, array( 'ORDER BY' => 'log_id', 'USE INDEX' => array('logging' => 'PRIMARY') ) -- 2.20.1