Skip to content

Commit

Permalink
global layout
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jul 12, 2017
1 parent d4d25d7 commit 83df9c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/joomla/edit/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
$hiddenFields[] = 'version_note';
}

if (!JLanguageMultilang::isEnabled())
{
$hiddenFields[] = 'language';
}

$html = array();
$html[] = '<fieldset class="form-vertical form-no-margin">';
Expand All @@ -56,6 +60,7 @@
if (in_array($f, $hiddenFields))
{
$form->setFieldAttribute($f, 'type', 'hidden');
$form->setFieldAttribute('language', 'default', '*');
}

$html[] = $form->renderField($f);
Expand Down

0 comments on commit 83df9c2

Please sign in to comment.