mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Fix for broken downloads when a full-path is used in the config.
This commit is contained in:
parent
3b54047253
commit
53468e3a4e
@ -744,7 +744,8 @@ class e_file
|
||||
$pref = e107::getPref();
|
||||
$tp = e107::getParser();
|
||||
|
||||
$DOWNLOADS_DIRECTORY = e_BASE.e107::getFolder('DOWNLOADS');
|
||||
$DOWNLOADS_DIR = e107::getFolder('DOWNLOADS');
|
||||
$DOWNLOADS_DIRECTORY = ($DOWNLOADS_DIR[0] == DIRECTORY_SEPARATOR) ? $DOWNLOADS_DIR : e_BASE.$DOWNLOADS_DIR; // support for full path eg. /home/account/folder.
|
||||
$FILES_DIRECTORY = e_BASE.e107::getFolder('FILES');
|
||||
$MEDIA_DIRECTORY = realpath(e_MEDIA); // could be image, file or other type.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user