From d8a0ceea340b7ef3d72b3a42d34ea6db8f713784 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 8 Sep 2004 23:24:17 +0000 Subject: [PATCH] Re-order tables in FROM to get it working on PostgreSQL. Fix for bug 393: Special:Log fails on PostgreSQL http://bugzilla.wikipedia.org/show_bug.cgi?id=393 --- includes/SpecialLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 2e3e2d0b3e..59547d499e 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -146,7 +146,7 @@ class LogReader { $sql = "SELECT log_type, log_action, log_timestamp, log_user, user_name, log_namespace, log_title, cur_id, - log_comment FROM $logging, $user "; + log_comment FROM $user, $logging "; if( !empty( $this->joinClauses ) ) { $sql .= implode( ',', $this->joinClauses ); } -- 2.20.1