File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1313
1414use Joomla \CMS \Application \CMSApplication ;
1515use Joomla \CMS \Component \ComponentHelper ;
16+ use Joomla \CMS \Language \Associations ;
1617use Joomla \CMS \Language \Text ;
1718use Joomla \CMS \Menu \AdministratorMenuItem ;
1819use Joomla \CMS \Table \Table ;
@@ -316,6 +317,17 @@ protected function preprocess($parent)
316317 continue ;
317318 }
318319
320+ /*
321+ * Multilingual Associations if the site is not set as multilingual and/or Associations is not enabled in
322+ * the Language Filter plugin
323+ */
324+
325+ if (!Associations::isEnabled () && $ item ->element === 'com_associations ' )
326+ {
327+ $ parent ->removeChild ($ item );
328+ continue ;
329+ }
330+
319331 // Exclude Mass Mail if disabled in global configuration
320332 if ($ item ->scope === 'massmail ' && ($ this ->application ->get ('mailonline ' , 1 ) == 0 || $ this ->application ->get ('massmailoff ' , 0 ) == 1 ))
321333 {
You can’t perform that action at this time.
0 commit comments