Как видишь, в версии 1.1.16 этот баг вернули на место:
framework/base/CErrorHandler.php
Код: Выделить всё
/**
* Renders the current error information.
* This method will display information from current {@link error} value.
*/
protected function renderError()
{
if($this->errorAction!==null)
Yii::app()->runController($this->errorAction);
else
{
$data=$this->getError();
if($this->isAjaxRequest())
Yii::app()->displayError($data['code'],$data['message'],$data['file'],$data['line']);
elseif(YII_DEBUG)
$this->render('exception',$data);
else
$this->render('error',$data);
}
}
Здесь errorAction более приоритетный, чем YII_DEBUG.
И теперь в файле config/main.php снова приходится использовать костыль:
Код: Выделить всё
errorHandler => array(
'errorAction' => YII_DEBUG ? null : array('site/error')
)