X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FSquish%2FCSS.pm;h=ccfbc27eceae3270f6d8febff08acecd888302c5;hp=1e2a45326588ac6a11e68fbfc0ea36670fb0a82b;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/rt/lib/RT/Squish/CSS.pm b/rt/lib/RT/Squish/CSS.pm index 1e2a45326..ccfbc27ec 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-2013 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2015 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;