mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-09-13 04:35 am

[dw-free] Plain text layersource view does not work in IE

[commit: http://hg.dwscoalition.org/dw-free/rev/cab380aaea55]

http://bugs.dwscoalition.org/show_bug.cgi?id=1762

Fix viewing layersource in plain mode.

Patch by [personal profile] afuna.

Files modified:
  • htdocs/customize/advanced/layersource.bml
--------------------------------------------------------------------------------
diff -r fd11f5ad7f30 -r cab380aaea55 htdocs/customize/advanced/layersource.bml
--- a/htdocs/customize/advanced/layersource.bml	Sun Sep 13 04:29:21 2009 +0000
+++ b/htdocs/customize/advanced/layersource.bml	Sun Sep 13 04:35:39 2009 +0000
@@ -75,7 +75,7 @@
     my $ua = BML::get_client_header("User-Agent");
     if ($ua && $ua =~ /\bMSIE\b/) {
         my $filename = "s2source-$id.txt";
-        BML::get_request()->header_out('Content-Disposition' => "attachment; filename=$filename");
+        DW::Request->get->header_out('Content-Disposition' => "attachment; filename=$filename");
     }
 
     BML::noparse();
--------------------------------------------------------------------------------