Skip to content

Commit

Permalink
only translate description if translation string is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Feb 25, 2018
1 parent 3345993 commit af8b09d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion adm_program/modules/menu/menu.php
Expand Up @@ -131,11 +131,18 @@ function moveMenu(direction, menID) {
if(admIsTranslationStrId($menuRow->men_name))
{
$menuName = $gL10n->get($menuRow->men_name);
$menuNameDesc = $gL10n->get($menuRow->men_description);
}
else
{
$menuName = $menuRow->men_name;
}

if(admIsTranslationStrId($menuRow->men_description))
{
$menuNameDesc = $gL10n->get($menuRow->men_description);
}
else
{
$menuNameDesc = $menuRow->men_description;
}

Expand Down

0 comments on commit af8b09d

Please sign in to comment.