Skip to content

Commit aadc452

Browse files
committed
Fixed wrong path if website in folder, closes #14
1 parent 0545d3f commit aadc452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/FMElfinderLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939
$options['roots'][] = array(
4040
'driver' => $parameter['driver'],
4141
'path' => $path . '/',
42-
'URL' => $request->getScheme() . '://' . $request->getHttpHost() . '/' . $path . '/',
42+
'URL' => $request->getScheme() . '://' . $request->getHttpHost() . $request->getBasePath() . '/' . $path . '/',
4343
'accessControl' => array($this, 'access'),
4444
'uploadAllow' => $parameter['upload_allow'],
4545
'uploadDeny' => $parameter['upload_deny'],

0 commit comments

Comments
 (0)