public function beforeAction($action)
	{
		if (Cii::getConfig('useDisqusComments'))
			throw new CHttpException(403, Yii::t('Api.comment', 'The comment API is not available while Disqus comments are enabled.'));

		if (Cii::getConfig('useDiscourceComments'))
			throw new CHttpException(403, Yii::t('Api.comment', 'The comment API is not available while Discourse comments are enabled.'));

		return parent::beforeAction($action);
	}
public function beforeAction($action)
	{
		if (Cii::getConfig('useDisqusComments'))
			throw new CHttpException(403, Yii::t('Api.comment', 'The comment API is not available while Disqus comments are enabled.'));

		if (Cii::getConfig('useDiscourceComments'))
			throw new CHttpException(403, Yii::t('Api.comment', 'The comment API is not available while Discourse comments are enabled.'));

		return parent::beforeAction($action);
	}
public function beforeAction ( $ action ) { if ( Cii :: getConfig ( 'useDisqusComments' ) ) throw new CHttpException ( 403 , Yii :: t ( 'Api.comment' , 'The comment API is not available while Disqus comments are enabled.' ) ) ; if ( Cii :: getConfig ( 'useDiscourceComments' ) ) throw new CHttpException ( 403 , Yii :: t ( 'Api.comment' , 'The comment API is not available while Discourse comments are enabled.' ) ) ; return parent :: beforeAction ( $ action ) ; }
If Disqus comments are enabled, disable the entire API
@param  CAction $action   The action we are using
@return null|boolean
If Disqus comments are enabled disable the entire API