diff --git a/components/com_config/view/modules/tmpl/default.php b/components/com_config/view/modules/tmpl/default.php index f52d9dbf23a8a..2dd0c26abcc3a 100644 --- a/components/com_config/view/modules/tmpl/default.php +++ b/components/com_config/view/modules/tmpl/default.php @@ -15,7 +15,22 @@ JHtml::_('behavior.combobox'); JHtml::_('formbehavior.chosen', 'select'); -$hasContent = empty($this->item['module']) || $this->item['module'] === 'custom' || $this->item['module'] === 'mod_custom'; +jimport('joomla.filesystem.file'); + +$editorText = false; +$moduleXml = JPATH_SITE . '/modules/' . $this->item['module'] . '/' . $this->item['module'] . '.xml'; + +if (JFile::exists($moduleXml)) +{ + $xml = simplexml_load_file($moduleXml); + + if (isset($xml->customContent)) + { + $editorText = true; + } +} + +$hasContent = empty($this->item['module']) || $this->item['module'] === 'custom' || $this->item['module'] === 'mod_custom' || $editorText === true; // If multi-language site, make language read-only if (JLanguageMultilang::isEnabled())