Browse Source

Bug in XML format

tags/2.0.0-beta
Borro 12 years ago
parent
commit
9f72973b83
  1. 2
      framework/yii/web/Response.php

2
framework/yii/web/Response.php

@ -771,7 +771,7 @@ class Response extends \yii\base\Response
} }
break; break;
case self::FORMAT_XML: case self::FORMAT_XML:
$this->content = Yii::createObject(XmlResponseFormatter::className())->format($this); Yii::createObject(XmlResponseFormatter::className())->format($this);
break; break;
default: default:
throw new InvalidConfigException("Unsupported response format: {$this->format}"); throw new InvalidConfigException("Unsupported response format: {$this->format}");

Loading…
Cancel
Save