Browse Source

Merge pull request #803 from borro/patch-1

Bug in XML format
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
f3cd755487
  1. 2
      framework/yii/web/Response.php

2
framework/yii/web/Response.php

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

Loading…
Cancel
Save