Changeset 239

Show
Ignore:
Timestamp:
2007-04-07 18:06:38 (21 months ago)
Author:
fredck
Message:

Merged trunk [227] and [238] into branches/versions/2.4.x. Final commit for the release of version 2.4.2.

Location:
FCKeditor/branches/versions/2.4.x
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/versions/2.4.x/_dev/build_release.bat

    r221 r239  
    2626 
    2727:: Update this variable for each new release. 
    28 SET RELEASER_VERSION=2.4.1 
     28SET RELEASER_VERSION=2.4.2 
    2929 
    3030CLS 
  • FCKeditor/branches/versions/2.4.x/_dev/releaser/fckreleaser.php

    r179 r239  
    349349function StrEndsWith( $str, $sub ) 
    350350{ 
    351    return ( substr( $str, strlen( $str ) - strlen( $sub ) ) == $sub ) ; 
     351        return ( substr( $str, strlen( $str ) - strlen( $sub ) ) == $sub ) ; 
    352352} 
    353353 
     
    363363{ 
    364364        $dirParts = explode( '/', $path ) ; 
    365          
     365 
    366366        $currentDir = '' ; 
    367367 
     
    369369        { 
    370370                $currentDir .= $dirPart . '/' ; 
    371                  
     371 
    372372                if ( strlen( $dirPart ) > 0 && !is_dir( $currentDir ) ) 
    373373                        mkdir( $currentDir, $rights ) ; 
     
    385385                fwrite( $f, "\xEF\xBB\xBF" ) ;  // BOM 
    386386 
    387         fwrite( $f, $strData ) ; 
    388         fclose( $f ) ; 
    389  
    390         return TRUE ; 
    391 } 
    392  
    393 function SaveStringToUtf8File( $strData, $filePath, $includeBom = TRUE ) 
    394 { 
    395         $f = @fopen( $filePath, 'wb' ) ; 
    396  
    397         if ( !$f ) 
    398                 return FALSE ; 
    399  
    400         if ( $includeBom ) 
    401                 fwrite( $f, "\xEF\xBB\xBF" ) ;  // BOM 
    402  
    403         fwrite( $f, ( $strData ) ) ; 
    404  
     387        fwrite( $f, StripUtf8Bom( $strData ) ) ; 
    405388        fclose( $f ) ; 
    406389 
     
    954937        function ProcessFile( $sourceFilePath, $destinationFilePath, $onlyHeader = FALSE ) 
    955938        { 
    956                 SaveStringToUtf8File( 
     939                SaveStringToFile( 
    957940                        FCKPreProcessor::Process( file_get_contents( $sourceFilePath ), $onlyHeader ), 
    958941                        $destinationFilePath, 
    959                         ( !StrEndsWith( $sourceFilePath, '.asp' ) && !StrEndsWith( $sourceFilePath, '.js' ) ) ) ;       // Only ASP and JavaScript files require the BOM. 
     942                        ( StrEndsWith( $sourceFilePath, '.asp' ) || StrEndsWith( $sourceFilePath, '.js' ) ) ) ; // Only ASP and JavaScript files require the BOM. 
    960943 
    961944                // Set the destination file Last Access and Last Write times. 
  • FCKeditor/branches/versions/2.4.x/_whatsnew.html

    r221 r239  
    3131<body> 
    3232        <h3> 
    33                 Version 2.4.1 (SVN)</h3> 
     33                Version 2.4.2</h3> 
     34        <p> 
     35                Fixed Bugs:</p> 
     36        <ul> 
     37                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/279">#279</a>] The UTF-8 
     38                        BOM was being included in the wrong files, affecting mainly PHP installations.</li> 
     39        </ul> 
     40        <h3> 
     41                Version 2.4.1</h3> 
    3442        <p> 
    3543                New Features and Improvements:</p>