public function checkForUpdates()
    {
        Piwik::checkUserHasSomeAdminAccess();
        $this->checkTokenInUrl();

        // perform check (but only once every 10s)
        UpdateCheck::check($force = false, UpdateCheck::UI_CLICK_CHECK_INTERVAL);

        $view = new View('@CoreHome/checkForUpdates');
        $this->setGeneralVariablesView($view);
        return $view->render();
    }
public function checkForUpdates()
    {
        Piwik::checkUserHasSomeAdminAccess();
        $this->checkTokenInUrl();

        // perform check (but only once every 10s)
        UpdateCheck::check($force = false, UpdateCheck::UI_CLICK_CHECK_INTERVAL);

        $view = new View('@CoreHome/checkForUpdates');
        $this->setGeneralVariablesView($view);
        return $view->render();
    }
public function checkForUpdates ( ) { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ this -> checkTokenInUrl ( ) ; // perform check (but only once every 10s) UpdateCheck :: check ( $ force = false , UpdateCheck :: UI_CLICK_CHECK_INTERVAL ) ; $ view = new View ( '@CoreHome/checkForUpdates' ) ; $ this -> setGeneralVariablesView ( $ view ) ; return $ view -> render ( ) ; }
Forces a check for updates and re-renders the header message.

This will check piwik.org at most once per 10s.
Forces a check for updates and re - renders the header message .