public function markAllAsRead() { global $wgUser, $wgCityId; $forceAll = $this->request->getVal('forceAll'); $wn = new WallNotifications(); $ret = $wn->markRead($wgUser->getId(), $wgCityId); if ($ret === false || $forceAll == 'FORCE') { $ret = $wn->markReadAllWikis($wgUser->getId()); } $this->getUpdateCountsInternal($wn); return true; }