From a9760c1b92f830a691e9ce7e81c48f8cd9039305 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 28 Mar 2007 07:28:21 +0000 Subject: [PATCH] Don't show rev_deleted usernames --- includes/Export.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Export.php b/includes/Export.php index f15c77847c..f685a6a409 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -139,7 +139,10 @@ class WikiExporter { $fname = "do_list_authors" ; wfProfileIn( $fname ); $this->author_list = ""; - $sql = "SELECT DISTINCT rev_user_text,rev_user FROM {$page},{$revision} WHERE page_id=rev_page AND " . $cond ; + //rev_deleted + $nothidden = '(rev_deleted & '.Revision::DELETED_USER.') = 0'; + + $sql = "SELECT DISTINCT rev_user_text,rev_user FROM {$page},{$revision} WHERE page_id=rev_page AND $nothidden AND " . $cond ; $result = $this->db->query( $sql, $fname ); $resultset = $this->db->resultObject( $result ); while( $row = $resultset->fetchObject() ) { -- 2.20.1