Pragma

Pragma

by Ger Tielemans -
Number of replies: 1
For a working TEXT print overview in IE under Windows, version 1.5.3:
change line 131 - 135 in /choice:
  // print text file    
    if ($download == "txt") {
        $filename = clean_filename("$course->shortname ".strip_tags(format_string($choice->name,true))).'.txt';
        header("Content-Type: application/download\n");
        header("Content-Disposition: attachment; filename=\"".$filename."\"");
into:
    // print text file    
    if ($download == "txt") {
        $filename = clean_filename("$course->shortname ".strip_tags(format_string($choice->name,true))).'.txt';
        header("Content-Type: application/download\n");
        header("Content-Disposition: attachment; filename=\"".$filename."\"");
        header("Expires: 0");
        header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
        header("Pragma: public");
after that it works for me smile
Average of ratings: -
In reply to Ger Tielemans

Re: Pragma

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
Is this something I should add to CVS or does it no longer pose a problem?

Thanks,

smile

Dan