log dump tweak: only select user_name from user table
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Feb 2009 19:10:37 +0000 (19:10 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Feb 2009 19:10:37 +0000 (19:10 +0000)
includes/Export.php

index 31b2b9c..faa11f0 100644 (file)
@@ -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') )