Member Home not working on multilanguage site [FIXED]

More
5 years 2 months ago #395 by gpalmas
Hi.
I found that Member Home is not working on a multilanguage site.
I investigated about and I found this: docs.joomla.org/How_to_determine_if_the_...ewing_the_front_page
Then, I applied the fix in plugins\system\memberhome\memberhome.php

In the last lines, I changed

$defaultMenu = $menu->getDefault();

to

$defaultMenu = $menu->getDefault($lang->getTag());

I also added $lang = JFactory::getLanguage(); to the top of the file.

The plugin is working now also in my multilanguage file.

Hope it could be useful!

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #396 by joomladds
Thanks for the info. I have a revised version with your tweaks. If you would be so kind to test for me? I do not currently have a multi-language site available. I made a slight change based on updated documentation for including the language file:
protected $autoloadLanguage = true;
instead of:
$lang = JFactory::getLanguage();

Please let me know if you are interested.

I'd love to change the world... but they won't give me the source code!

Please Log in or Create an account to join the conversation.

Time to create page: 0.114 seconds