sync
authoralan <alan@hex.hk.com>
Thu, 20 May 2010 09:40:38 +0000 (17:40 +0800)
committeralan <alan@hex.hk.com>
Thu, 20 May 2010 09:40:38 +0000 (17:40 +0800)
HTML/FlexyFramework/Page.php
HTTP/Upload.php

index 2cad9b2..d5f025d 100644 (file)
@@ -223,8 +223,8 @@ class HTML_FlexyFramework_Page  {
         /* 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) {
index 2737d39..d2e77de 100644 (file)
@@ -335,7 +335,7 @@ class HTTP_Upload extends HTTP_Upload_Error
             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
@@ -853,4 +853,4 @@ class HTTP_Upload_File extends HTTP_Upload_Error
         return true;\r
     }\r
 }\r
-?>
\ No newline at end of file
+?>