http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88722

Revision: 88722
Author:   reedy
Date:     2011-05-24 16:04:03 +0000 (Tue, 24 May 2011)
Log Message:
-----------
* (bug 29120) ApiQueryLogEvents: let letype accept multiple values

Description already hinted at multiple

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.19
    trunk/phase3/includes/api/ApiQueryLogEvents.php

Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19     2011-05-24 16:01:17 UTC (rev 88721)
+++ trunk/phase3/RELEASE-NOTES-1.19     2011-05-24 16:04:03 UTC (rev 88722)
@@ -90,6 +90,7 @@
   title inputs
 * (bug 20699) API watchlist should list log-events
 * (bug 29070) Add token to action=watch
+* (bug 29120) ApiQueryLogEvents: let letype accept multiple values
 
 === Languages updated in 1.19 ===
 

Modified: trunk/phase3/includes/api/ApiQueryLogEvents.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryLogEvents.php     2011-05-24 16:01:17 UTC 
(rev 88721)
+++ trunk/phase3/includes/api/ApiQueryLogEvents.php     2011-05-24 16:04:03 UTC 
(rev 88722)
@@ -114,8 +114,7 @@
                        list( $type, $action ) = explode( '/', 
$params['action'] );
                        $this->addWhereFld( 'log_type', $type );
                        $this->addWhereFld( 'log_action', $action );
-               }
-               else if ( !is_null( $params['type'] ) ) {
+               } else if ( !is_null( $params['type'] ) ) {
                        $this->addWhereFld( 'log_type', $params['type'] );
                        $index['logging'] = 'type_time';
                }
@@ -374,7 +373,8 @@
                                )
                        ),
                        'type' => array(
-                               ApiBase::PARAM_TYPE => $wgLogTypes
+                               ApiBase::PARAM_TYPE => $wgLogTypes,
+                               ApiBase::PARAM_ISMULTI => true,
                        ),
                        'action' => array(
                                ApiBase::PARAM_TYPE => array_keys( 
$wgLogActions )


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to