private function getUpdateWikiInternal(WallNotifications $wn, $wikiId, $isCrossWiki = false) { if ($isCrossWiki) { $all = $wn->getWikiNotifications($this->wg->User->getId(), $wikiId, 0); } else { $all = $wn->getWikiNotifications($this->wg->User->getId(), $wikiId, 5, false, true); } $this->response->setVal('html', $this->app->renderView('WallNotifications', 'UpdateWiki', array('notifications' => $all))); $this->response->setVal('unread', $all['unread_count']); $this->response->setVal('status', true); }
private function getUpdateWikiInternal(WallNotifications $wn, $wikiId, $isCrossWiki = false) { global $wgUser; if ($isCrossWiki) { $all = $wn->getWikiNotifications($wgUser->getId(), $wikiId, 0); } else { $all = $wn->getWikiNotifications($wgUser->getId(), $wikiId, 5, false, true); } $this->response->setVal('html', $this->app->renderView($this->controllerName, 'UpdateWiki', ['notifications' => $all])); $this->response->setVal('unread', $all['unread_count']); $this->response->setVal('status', true); $this->response->setCachePolicy(WikiaResponse::CACHE_PRIVATE); $this->response->setCacheValidity(WikiaResponse::CACHE_DISABLED); }