Avatar path in settings
Closed this issue · 2 comments
Kaik commented
I will use this issue with my problem - when path is set in settings it has to be global
https://github.com/zikula-modules/Profile/blob/master/Controller/ConfigController.php#L86
while in https://github.com/zikula-modules/Profile/blob/master/Bridge/ProfileModuleBridge.php#L140
it is used as relative path to base path.
Unless you have any other ideas this works
https://github.com/zikula-modules/Profile/blob/master/Controller/ConfigController.php#L85
$path = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), 'modules')).$modVars[ProfileConstant::MODVAR_AVATAR_IMAGE_PATH];
Hmm now I'm not sure if this ticket is a right place for issue.