29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-06 12:03:39 +00:00

Only add debug information during installation on HTML documents (#20528)

This commit is contained in:
Allon Moritz 2018-05-22 18:15:41 +02:00 committed by George Wilson
parent ebdc7e2299
commit 8477d0b3c1

View File

@ -102,6 +102,11 @@ final class InstallationApplication extends CMSApplication
*/
public function debugLanguage()
{
if ($this->getDocument()->getType() != 'html')
{
return '';
}
$lang = Factory::getLanguage();
$output = '<h4>' . \JText::_('JDEBUG_LANGUAGE_FILES_IN_ERROR') . '</h4>';