From: umherirrender Date: Mon, 30 Mar 2015 18:18:44 +0000 (+0200) Subject: Fix list=logevents for new revision delete log entries X-Git-Tag: 1.31.0-rc.0~11822^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=bde178fad108501bddfe33a1a0958f7b714f6b8f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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] ); } }