Fix list=logevents for new revision delete log entries
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 30 Mar 2015 18:18:44 +0000 (20:18 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 30 Mar 2015 18:18:44 +0000 (20:18 +0200)
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

index adf96fd..a9349b1 100644 (file)
@@ -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] );
                                        }
                                }