Making CakeBaseReporter constructor take null for charset, so its easier to type.

This commit is contained in:
Mark Story 2010-01-10 12:48:11 -05:00
parent e304246e8f
commit cf5c48ecc5

View file

@ -82,6 +82,9 @@ class CakeBaseReporter extends SimpleReporter {
*/ */
function CakeBaseReporter($charset = 'utf-8', $params = array()) { function CakeBaseReporter($charset = 'utf-8', $params = array()) {
$this->SimpleReporter(); $this->SimpleReporter();
if (!$charset) {
$charset = 'utf-8';
}
$this->_characterSet = $charset; $this->_characterSet = $charset;
$this->params = $params; $this->params = $params;
} }