{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*}
{if isset($langSwitch) and $langSwitch|@count > 1}
<form action="#">
- <select name="lcMessages" onchange="window.location='{$smarty.server.REQUEST_URI}{if strpos( $smarty.server.REQUEST_URI, '?' ) === false}?{else}&{/if}lcMessages='+this.value">
+ <select name="lcMessages" onchange="window.location='{crmURL q="$queryString"}'+this.value">
{foreach from=$langSwitch item=language key=locale}
<option value="{$locale}" {if $locale == $tsLocale}selected="selected"{/if}>{$language}</option>
{/foreach}