Skip to content

Commit

Permalink
Merge pull request #2 from denispugachev/hide_i18n_context_menu_on_re…
Browse files Browse the repository at this point in the history
…gular_iblock

Hide i18n context menu for regular iblock
  • Loading branch information
niksamokhvalov committed Dec 27, 2016
2 parents 3c822f8 + d02844d commit d5f7636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/iblock/ui/interfacehelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ public static function getLangMenu()
$currentLang = static::getCurrentLang($model);
$settings = static::getIblockSettings($request->get('IBLOCK_ID'));

if ($settings === null) {
return null;
}

$itemVersions = static::getItemVersions($model, $relatedId, $settings);

$rsLangs = LanguageTable::query()
Expand Down

0 comments on commit d5f7636

Please sign in to comment.