Browse Source

fixed usage of renamed method in Response

tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
e5d8e4adcb
  1. 2
      framework/yii/web/Response.php

2
framework/yii/web/Response.php

@ -158,7 +158,7 @@ class Response extends \yii\base\Response
public function setStatusCode($value, $text = null)
{
$this->_statusCode = (int)$value;
if ($this->isInvalid()) {
if ($this->getIsInvalid()) {
throw new InvalidParamException("The HTTP status code is invalid: $value");
}
if ($text === null) {

Loading…
Cancel
Save