[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-153-gfd60fd3
sartak at bestpractical.com
sartak at bestpractical.com
Wed Feb 10 00:15:39 EST 2010
The branch, 3.8-trunk has been updated
via fd60fd33287448352ba615856501615d54305030 (commit)
from e7431dbebb6989563b770cceeafdbf1d02627492 (commit)
Summary of changes:
share/html/NoAuth/css/autohandler | 3 ++-
share/html/NoAuth/js/autohandler | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit fd60fd33287448352ba615856501615d54305030
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Feb 10 00:14:43 2010 -0500
Pass RelativeFile to SendStaticFile in css and js autohandlers
diff --git a/share/html/NoAuth/css/autohandler b/share/html/NoAuth/css/autohandler
index a92cfd1..f11f78a 100644
--- a/share/html/NoAuth/css/autohandler
+++ b/share/html/NoAuth/css/autohandler
@@ -49,7 +49,8 @@
my $file = $m->base_comp->source_file;
if ($file =~ /\.(gif|png|jpe?g)$/i) {
- RT::Interface::Web->SendStaticFile( File => $file );
+ my $relfile = $m->base_comp->path;
+ RT::Interface::Web->SendStaticFile( File => $file, RelativeFile => $relfile );
} else {
RT::Interface::Web::StaticFileHeaders();
$r->content_type('text/css') ;
diff --git a/share/html/NoAuth/js/autohandler b/share/html/NoAuth/js/autohandler
index 74028f8..e814154 100644
--- a/share/html/NoAuth/js/autohandler
+++ b/share/html/NoAuth/js/autohandler
@@ -51,7 +51,8 @@ my $type;
my $file = $m->base_comp->source_file;
if ($file =~ /\.(gif|png|jpe?g)$/i) {
- RT::Interface::Web->SendStaticFile( File => $file );
+ my $relfile = $m->base_comp->path;
+ RT::Interface::Web->SendStaticFile( File => $file, RelativeFile => $relfile );
} else {
&RT::Interface::Web::StaticFileHeaders();
$r->content_type('application/x-javascript');
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list