From c5331c44fd5f0251e7ec572c3bfc50a9f52c86bf Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 23 Aug 2014 02:16:12 +0200 Subject: move language select to the top --- includes/helper/internationalization_helper.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'includes/helper') diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php index db150fec..7598dc2f 100644 --- a/includes/helper/internationalization_helper.php +++ b/includes/helper/internationalization_helper.php @@ -45,11 +45,10 @@ function make_langselect() { global $locales; $URL = $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"], "?") > 0 ? '&' : '?') . "set_locale="; - $html = '

'; + $items = array(); foreach ($locales as $locale => $name) - $html .= '' . $name . ''; - $html .= '

'; - return ''; + $items[] = toolbar_item_link(htmlspecialchars($URL) . $locale, '', '' . $name . ' ' . $name); + return toolbar_dropdown('', '' . $locales[$_SESSION['locale']] . ' ' . $locales[$_SESSION['locale']], $items); } ?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf