From bde178fad108501bddfe33a1a0958f7b714f6b8f Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 30 Mar 2015 20:18:44 +0200 Subject: [PATCH] Fix list=logevents for new revision delete log entries The backward compatibility code from Ic149960f797d05fd088fa014390d791e3ae08687 missed the word ofield= and nfield= which are hard coded in the old logging system and was outputted to the api client. Bug: T94377 Change-Id: I6c21b2b4bc2042ca07d376418b895874503568d5 --- includes/api/ApiQueryLogEvents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index adf96fd569..a9349b1e56 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -366,11 +366,11 @@ class ApiQueryLogEvents extends ApiQueryBase { unset( $params[$idsKey] ); } if ( isset( $params[$ofieldKey] ) ) { - $params[] = $params[$ofieldKey]; + $params[] = 'ofield=' . $params[$ofieldKey]; unset( $params[$ofieldKey] ); } if ( isset( $params[$nfieldKey] ) ) { - $params[] = $params[$nfieldKey]; + $params[] = 'nfield=' . $params[$nfieldKey]; unset( $params[$nfieldKey] ); } } -- 2.20.1