summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htetc/freeside-rt.conf10
-rwxr-xr-xrt/share/html/Elements/Header5
2 files changed, 12 insertions, 3 deletions
diff --git a/htetc/freeside-rt.conf b/htetc/freeside-rt.conf
index bcc5de3bd..fe0142e05 100644
--- a/htetc/freeside-rt.conf
+++ b/htetc/freeside-rt.conf
@@ -90,3 +90,13 @@ SetHandler perl-script
PerlHandler HTML::Mason
</Directory>
+#XXX support running without /freeside in 4.x? or are we just giving up on
+# that and putting a redirect in at / ?
+Alias /freeside/rt/static "/opt/rt3/share/static"
+<Directory "/opt/rt3/share/static">
+<Limit GET POST>
+allow from all
+Satisfy any
+</Limit>
+</Directory>
+
diff --git a/rt/share/html/Elements/Header b/rt/share/html/Elements/Header
index 3aeb31972..3a5be7aee 100755
--- a/rt/share/html/Elements/Header
+++ b/rt/share/html/Elements/Header
@@ -101,7 +101,7 @@ my $WebImagesURL = RT->Config->Get('WebImagesURL');
my $squished = RT->Config->Get('DevelMode') ? '' : '-squished';
if ( $JavaScript ) {
- $head .= $m->scomp('JavascriptConfig');
+ $head .= $m->scomp('/Elements/JavascriptConfig');
}
for my $cssfile ( @css_files ) {
@@ -118,7 +118,7 @@ if ( $RSSAutoDiscovery ) {
}
if ($JavaScript) {
- $head .= $m->scomp('HeaderJavascript', focus => $Focus, onload => $onload, RichText => $RichText );
+ $head .= $m->scomp('/Elements/HeaderJavascript', focus => $Focus, onload => $onload, RichText => $RichText );
my $stylesheet_plugin = "/NoAuth/css/$style/InHeader";
if ($m->comp_exists($stylesheet_plugin) ) {
@@ -135,7 +135,6 @@ my $etc = ' class="'. join( '',@{$ARGS{'BodyClass'}}). '" ';
$etc .= qq[ id="comp-$id"] if $id;
</%INIT>
-
<%ARGS>
#$Focus => 'focus'
$Focus => ''