Changeset 355
- Timestamp:
- 2007-06-03 13:43:12 (20 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/filemanager/browser/default/connectors/php/basexml.php (modified) (2 diffs)
-
editor/filemanager/browser/default/connectors/php/io.php (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/browser/default/connectors/php/basexml.php
r132 r355 55 55 // Add the current folder node. 56 56 echo '<CurrentFolder path="' . ConvertToXmlAttribute( $currentFolder ) . '" url="' . ConvertToXmlAttribute( GetUrlFromPath( $resourceType, $currentFolder ) ) . '" />' ; 57 58 $GLOBALS['HeaderSent'] = true ; 57 59 } 58 60 … … 69 71 echo '<?xml version="1.0" encoding="utf-8" ?>' ; 70 72 71 echo '<Connector><Error number="' . $number . '" text="' . htmlspecialchars( $text ) . '" /></Connector>' ; 73 echo '<Connector>' ; 74 75 SendErrorNode( $number, $text ) ; 76 77 echo '</Connector>' ; 72 78 73 79 exit ; 74 80 } 81 82 function SendErrorNode( $number, $text ) 83 { 84 echo '<Error number="' . $number . '" text="' . htmlspecialchars( $text ) . '" />' ; 85 } 75 86 ?> -
FCKeditor/trunk/editor/filemanager/browser/default/connectors/php/io.php
r353 r355 42 42 43 43 // Ensure that the directory exists. 44 CreateServerFolder( $sResourceTypePath ) ; 44 $sErrorMsg = CreateServerFolder( $sResourceTypePath ) ; 45 if ( $sErrorMsg != '' ) 46 { 47 if ( isset( $GLOBALS['HeaderSent'] ) && $GLOBALS['HeaderSent'] ) 48 { 49 SendErrorNode( 1, "Error creating folder \"{$sResourceTypePath}\" ({$sErrorMsg})" ) ; 50 CreateXmlFooter() ; 51 exit ; 52 } 53 else 54 { 55 SendError( 1, "Error creating folder \"{$sResourceTypePath}\" ({$sErrorMsg})" ) ; 56 } 57 } 45 58 46 59 // Return the resource type directory combined with the required path. -
FCKeditor/trunk/_whatsnew.html
r353 r355 153 153 BUG-1721787</a>] If the editor is run from a virtual dir, the PHP connector will detect that 154 154 and avoid generating a wrong folder.</li> 155 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/431">#431</a>] PHP: The 156 File Browser now displays an error message when it is not able to created the configured 157 target directory for files (instead of sending broken XML responses).</li> 155 158 </ul> 156 159 <h3>