Show
Ignore:
Timestamp:
2007-03-27 17:58:03 (19 months ago)
Author:
fredck
Message:

Fixed #279 : Corrected the releaser to include the UTF-8 BOM only in the necessary files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKreleaser/trunk/_source/includes/fckpackager/fckpreprocessor.inc

    r159 r226  
    2929        function ProcessFile( $sourceFilePath, $destinationFilePath, $onlyHeader = FALSE ) 
    3030        { 
    31                 SaveStringToUtf8File( 
     31                SaveStringToFile( 
    3232                        FCKPreProcessor::Process( file_get_contents( $sourceFilePath ), $onlyHeader ), 
    3333                        $destinationFilePath, 
    34                         ( !StrEndsWith( $sourceFilePath, '.asp' ) && !StrEndsWith( $sourceFilePath, '.js' ) ) ) ;       // Only ASP and JavaScript files require the BOM. 
     34                        ( StrEndsWith( $sourceFilePath, '.asp' ) || StrEndsWith( $sourceFilePath, '.js' ) ) ) ; // Only ASP and JavaScript files require the BOM. 
    3535 
    3636                // Set the destination file Last Access and Last Write times.