Patch from Jose: sitemgr / wiki file upload from fckeditor.

"Attached a small patch on fckeditor that leaves our url passed exact (from site pref), removes the append of file type"
This commit is contained in:
Cornelius Weiß 2007-02-23 08:38:24 +00:00
parent b2dedd114b
commit 9f2f7f6d4f
2 changed files with 11 additions and 5 deletions

View File

@ -23,7 +23,8 @@ function GetUrlFromPath( $resourceType, $folderPath )
if ( $resourceType == '' )
return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ;
else
return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ;
//INTEGRATION return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ;
return $GLOBALS["UserFilesPath"] . RemoveFromStart( $folderPath, '/' ) ;
}
function RemoveExtension( $fileName )
@ -34,7 +35,8 @@ function RemoveExtension( $fileName )
function ServerMapFolder( $resourceType, $folderPath )
{
// Get the resource type directory.
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . $resourceType . '/' ;
//INTEGRATION $sResourceTypePath = $GLOBALS["UserFilesDirectory"] . $resourceType . '/' ;
$sResourceTypePath = $GLOBALS["UserFilesDirectory"] . '/' ;
// Ensure that the directory exists.
CreateServerFolder( $sResourceTypePath ) ;

View File

@ -1,7 +1,7 @@
Changes made to fckeditor to work properly on egroupware
- fckconfig.js
- Added egw_* toolbars
- /editor/filemanager/browser/default/connectors/php/connector.php
- editor/filemanager/browser/default/connectors/php/connector.php
- Change hardcoded image dir from Image -> images (to respect the actual behavior in sitemgr)
- editor/filemanager/browser/default/frmresourcetype.html
- Again change Image -> images
@ -10,3 +10,7 @@ Changes made to fckeditor to work properly on egroupware
- Enable the browser
- editor/filemanager/upload/php/config.php
- Commented hardcoded Userdir path (is disabled by default)
- editor/filemanager/browser/default/connectors/php/io.php
- Remove the append of directory per type, example, for images the final url is base+serverpath+images (or type)