Changeset 239
- Timestamp:
- 2007-04-07 18:06:38 (21 months ago)
- Location:
- FCKeditor/branches/versions/2.4.x
- Files:
-
- 3 modified
-
_dev/build_release.bat (modified) (1 diff)
-
_dev/releaser/fckreleaser.php (modified) (5 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/versions/2.4.x/_dev/build_release.bat
r221 r239 26 26 27 27 :: Update this variable for each new release. 28 SET RELEASER_VERSION=2.4. 128 SET RELEASER_VERSION=2.4.2 29 29 30 30 CLS -
FCKeditor/branches/versions/2.4.x/_dev/releaser/fckreleaser.php
r179 r239 349 349 function StrEndsWith( $str, $sub ) 350 350 { 351 return ( substr( $str, strlen( $str ) - strlen( $sub ) ) == $sub ) ;351 return ( substr( $str, strlen( $str ) - strlen( $sub ) ) == $sub ) ; 352 352 } 353 353 … … 363 363 { 364 364 $dirParts = explode( '/', $path ) ; 365 365 366 366 $currentDir = '' ; 367 367 … … 369 369 { 370 370 $currentDir .= $dirPart . '/' ; 371 371 372 372 if ( strlen( $dirPart ) > 0 && !is_dir( $currentDir ) ) 373 373 mkdir( $currentDir, $rights ) ; … … 385 385 fwrite( $f, "\xEF\xBB\xBF" ) ; // BOM 386 386 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 ) ) ; 405 388 fclose( $f ) ; 406 389 … … 954 937 function ProcessFile( $sourceFilePath, $destinationFilePath, $onlyHeader = FALSE ) 955 938 { 956 SaveStringTo Utf8File(939 SaveStringToFile( 957 940 FCKPreProcessor::Process( file_get_contents( $sourceFilePath ), $onlyHeader ), 958 941 $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. 960 943 961 944 // Set the destination file Last Access and Last Write times. -
FCKeditor/branches/versions/2.4.x/_whatsnew.html
r221 r239 31 31 <body> 32 32 <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> 34 42 <p> 35 43 New Features and Improvements:</p>