X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FSquish%2FCSS.pm;h=4ea0d0d3e4732ff4060fcec765752507418cd53b;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=9914514952406b1ab295777934fe495ffb562cd9;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/lib/RT/Squish/CSS.pm b/rt/lib/RT/Squish/CSS.pm index 991451495..4ea0d0d3e 100644 --- a/rt/lib/RT/Squish/CSS.pm +++ b/rt/lib/RT/Squish/CSS.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -78,27 +78,8 @@ sub Squish { return $self->concatenate( "$style/main.css", RT->Config->Get('CSSFiles') ); } -=head2 file_handle - -subclass CSS::Squish::file_handle for RT - -=cut - -sub file_handle { - my $self = shift; - my $file = shift; - - my $path = "/NoAuth/css/$file"; - my $content; - if ( $HTML::Mason::Commands::m->comp_exists($path) ) { - $content = $HTML::Mason::Commands::m->scomp("$path"); - } else { - RT->Logger->error("Unable to open $path for CSS Squishing"); - return undef; - } - - open( my $fh, '<', \$content ) or die $!; - return $fh; +sub roots { + map { "$_/css" } RT::Interface::Web->StaticRoots } 1;