Opened 7 years ago

#1543 new defect

ExtendedFileManager. Wrong path when edit properties.

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Plugins Version: trunk
Severity: normal Keywords: ExtendedFileManager
Cc:

Description

Inserting new image at page is ok.

But when open EFM by "Image properties", field "File name" get wrong path included directory name above root path of $IMConfigimages_url?

=====[ my cfg.php: ]=============================
$cfgsite?url?= "http://".$_SERVER['HTTP_HOST']."/somesoft/";
$cfgsite?dir?= "c:/apache/htdocs/somesoft/";
$cfgfiles?dir? = "files";
============================================

=====[ EFM config.inc.php ]=========================
include("../../../cfg.php");

$IMConfigbackend_url? = "backend.php?plugin=ExtendedFileManager&";

$IMConfigbase_dir? = getcwd();
$IMConfigbase_url? = ;

$IMConfigimages_dir? = $cfgsite?dir?.$cfgfiles?dir?;
$IMConfigimages_url? = $cfgsite?url?.$cfgfiles?dir?;
============================================

File name when insert new image: /test.jpg
File name when edit properties of image: /somesoft/files/test.jpg

Change History (0)

Note: See TracTickets for help on using tickets.