Followup r89348
authorSam Reed <reedy@users.mediawiki.org>
Thu, 2 Jun 2011 18:39:55 +0000 (18:39 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 2 Jun 2011 18:39:55 +0000 (18:39 +0000)
Fix code style, and remove hint that variable may be multi

includes/api/ApiQueryLogEvents.php

index dd43f9b..53972a7 100644 (file)
@@ -111,8 +111,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                        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';
                }
@@ -419,7 +418,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                                ' details        - Lists addtional details about the event',
                                ' tags           - Lists tags for the event',
                        ),
-                       'type' => 'Filter log entries to only this type(s)',
+                       'type' => 'Filter log entries to only this type',
                        'action' => "Filter log actions to only this type. Overrides {$p}type",
                        'start' => 'The timestamp to start enumerating from',
                        'end' => 'The timestamp to end enumerating',