Fix a function param in API

The distributionType is still passed to the function, it will
be arry of event types in next patch

Change-Id: Ieae7cfc383c2a024256f7e6b2f91d3b5c323f79b
This commit is contained in:
bsitu 2014-07-31 11:28:39 -07:00
parent f94f24dbc0
commit 77239e17de

View file

@ -66,7 +66,7 @@ class ApiEchoNotifications extends ApiQueryBase {
// Fetch the result for the event types above
$notifMapper = new EchoNotificationMapper( MWEchoDbFactory::newFromDefault() );
$notifs = $notifMapper->fetchByUser( $user, $limit + 1, $continue, $eventTypesToLoad );
$notifs = $notifMapper->fetchByUser( $user, $limit + 1, $continue, 'web' );
foreach ( $notifs as $notif ) {
$result['list'][$notif->getEvent()->getID()] = EchoDataOutputFormatter::formatOutput( $notif, $format, $user );
}