Merge "Fix a function param in API"

This commit is contained in:
jenkins-bot 2014-07-31 20:43:13 +00:00 committed by Gerrit Code Review
commit a2dcf255e5

View file

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