-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.2
Hi
we are developing a system plugin that hooks into the onPreprocessMenuItems trigger that was introduced in J 3.7.0 with the development of the new backend menu management. We have a developed a plugin to remove backend menu items such as Configuration when the ACL permissions don't allow the user to view the configuration.
The plugin works correctly but we have noticed an unwanted side effect. In the plugin function onPreprocessMenuItems we have the following code:
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))
return true;
so we can call hikashop functions such as hikashop_config() and hikahop_isAllowed().
However including these 2 lines of code breaks any joomla language overrides in the backend. Can you help understand why this happens?
Thanks