diff --git a/plugins/Multilanguage/MultilanguagePlugin.php b/plugins/Multilanguage/MultilanguagePlugin.php index b798a66..361e8da 100644 --- a/plugins/Multilanguage/MultilanguagePlugin.php +++ b/plugins/Multilanguage/MultilanguagePlugin.php @@ -561,7 +561,7 @@ public function filterLocale($locale) public function filterAdminNavigationGlobal($nav) { $enabledLocales = unserialize(get_option('multilanguage_locales_admin')); - if (empty($enabledLocales)) { + if (empty($enabledLocales) || count($enabledLocales) == 1) { return $nav; } diff --git a/plugins/Multilanguage/views/shared/common/locale-switcher.php b/plugins/Multilanguage/views/shared/common/locale-switcher.php index 26b0d9c..526d415 100644 --- a/plugins/Multilanguage/views/shared/common/locale-switcher.php +++ b/plugins/Multilanguage/views/shared/common/locale-switcher.php @@ -35,11 +35,11 @@ localeToCountry($locale); ?>
  • - + $locale, 'redirect' => $currentUrl) + $query); ?> - +