mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-56642 dataformat: Fixed method_exits parameters
This commit is contained in:
parent
4b2bcd2376
commit
79cb27179a
@ -49,7 +49,7 @@ abstract class spout_base extends \core\dataformat\base {
|
||||
*/
|
||||
public function send_http_headers() {
|
||||
$this->writer = \Box\Spout\Writer\WriterFactory::create($this->spouttype);
|
||||
if (method_exists('setTempFolder', $this->writer)) {
|
||||
if (method_exists($this->writer, 'setTempFolder')) {
|
||||
$this->writer->setTempFolder(make_request_directory());
|
||||
}
|
||||
$filename = $this->filename . $this->get_extension();
|
||||
|
Loading…
x
Reference in New Issue
Block a user