MDL-53973 tablelib: Fixed bug with worksheetname being ignored
authorBrendan Heywood <brendan@catalyst-au.net>
Thu, 28 Apr 2016 03:01:27 +0000 (13:01 +1000)
committerDan Poltawski <dan@moodle.com>
Fri, 29 Apr 2016 11:17:58 +0000 (12:17 +0100)
lib/tablelib.php

index ce3ff20..3ab0070 100644 (file)
@@ -1730,7 +1730,6 @@ class table_dataformat_export_format extends table_default_export_format_parent
         $this->filename = $filename;
         $this->documentstarted = true;
         $this->dataformat->set_filename($filename);
-        $this->dataformat->send_http_headers();
     }
 
     /**
@@ -1740,6 +1739,7 @@ class table_dataformat_export_format extends table_default_export_format_parent
      */
     public function start_table($sheettitle) {
         $this->dataformat->set_sheettitle($sheettitle);
+        $this->dataformat->send_http_headers();
     }
 
     /**