/* output the body if no masterTemplate is set */
$options = PEAR::getStaticProperty('HTML_FlexyFramework','options');
-
- header('Content-Type: text/html;charset='.( empty($options['charset']) ? 'UTF-8' : $options['charset'] ));
+ $type = isset($this->contentType) ? $this->contentType : 'text/html';
+ header('Content-Type: '.$type.';charset='.( empty($options['charset']) ? 'UTF-8' : $options['charset'] ));
if (!$this->masterTemplate) {
if (PEAR::isError($files)) {\r
// there was an error with the form.\r
// Create a faked upload embedding the error\r
- $this->files['_error'] = &new HTTP_Upload_File(\r
+ $this->files['_error'] = new HTTP_Upload_File(\r
'_error', null,\r
null, null,\r
null, $files->getCode(),\r
return true;\r
}\r
}\r
-?>
\ No newline at end of file
+?>