original_string: public function noAccess(Exception $exception)
      {
          $frontController = FrontController::getInstance();
  
          if (Common::isXmlHttpRequest()) {
              echo $frontController->dispatch(Piwik::getLoginPluginName(), 'ajaxNoAccess', array($exception->getMessage()));
              return;
          }
  
          echo $frontController->dispatch(Piwik::getLoginPluginName(), 'login', array($exception->getMessage()));
      }
code: public function noAccess(Exception $exception)
      {
          $frontController = FrontController::getInstance();
  
          if (Common::isXmlHttpRequest()) {
              echo $frontController->dispatch(Piwik::getLoginPluginName(), 'ajaxNoAccess', array($exception->getMessage()));
              return;
          }
  
          echo $frontController->dispatch(Piwik::getLoginPluginName(), 'login', array($exception->getMessage()));
      }
code_tokens: public function noAccess ( Exception $ exception ) { $ frontController = FrontController :: getInstance ( ) ; if ( Common :: isXmlHttpRequest ( ) ) { echo $ frontController -> dispatch ( Piwik :: getLoginPluginName ( ) , 'ajaxNoAccess' , array ( $ exception -> getMessage ( ) ) ) ; return ; } echo $ frontController -> dispatch ( Piwik :: getLoginPluginName ( ) , 'login' , array ( $ exception -> getMessage ( ) ) ) ; }
docstring: Redirects to Login form with error message.
  Listens to User.isNotAuthorized hook.
docstring_tokens: Redirects to Login form with error message . Listens to User . isNotAuthorized hook .