original_string: public function onDispatchError(MvcEvent $e)
      {
          $ex = $e->getParam('exception');
          $model = $e->getResult();
  
          if ($model instanceof ViewModel
              && Application::ERROR_EXCEPTION == $e->getError()
              && 0 === strpos($ex->getMessage(), 'Your application id and secret')
          ) {
              $model->setTemplate('auth/error/social-profiles-unconfigured');
          }
      }
code: public function onDispatchError(MvcEvent $e)
      {
          $ex = $e->getParam('exception');
          $model = $e->getResult();
  
          if ($model instanceof ViewModel
              && Application::ERROR_EXCEPTION == $e->getError()
              && 0 === strpos($ex->getMessage(), 'Your application id and secret')
          ) {
              $model->setTemplate('auth/error/social-profiles-unconfigured');
          }
      }
code_tokens: public function onDispatchError ( MvcEvent $ e ) { $ ex = $ e -> getParam ( 'exception' ) ; $ model = $ e -> getResult ( ) ; if ( $ model instanceof ViewModel && Application :: ERROR_EXCEPTION == $ e -> getError ( ) && 0 === strpos ( $ ex -> getMessage ( ) , 'Your application id and secret' ) ) { $ model -> setTemplate ( 'auth/error/social-profiles-unconfigured' ) ; } }
docstring: Sets a specific view template if social network login is unconfigured.
  
  @param MvcEvent $e
docstring_tokens: Sets a specific view template if social network login is unconfigured .