X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FSquish%2FCSS.pm;h=d22b0374798fcea015f09c1b3499118f8487e9ba;hb=9ce482da3960ee43decee41fba53b78c12c3e52c;hp=ad9b553defe41381f1338af892a06a883539ac84;hpb=d05d7346bb2387fd9d0354923d577275c5c7f019;p=freeside.git diff --git a/rt/lib/RT/Squish/CSS.pm b/rt/lib/RT/Squish/CSS.pm index ad9b553de..d22b03747 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-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2016 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;