コード例 #1
0
ファイル: Controller.php プロジェクト: pombredanne/ArcherSys
 /**
  * Forces a check for updates and re-renders the header message.
  *
  * This will check piwik.org at most once per 10s.
  */
 public function checkForUpdates()
 {
     Piwik::checkUserHasSomeAdminAccess();
     $this->checkTokenInUrl();
     // perform check (but only once every 10s)
     UpdateCheck::check($force = false, UpdateCheck::UI_CLICK_CHECK_INTERVAL);
     MarketplaceApiClient::clearAllCacheEntries();
     $view = new View('@CoreHome/checkForUpdates');
     $this->setGeneralVariablesView($view);
     return $view->render();
 }