Merge branch '4.5' of https://github.com/civicrm/civicrm-core
[civicrm-core.git] / templates / CRM / Block / LangSwitch.tpl
index 1d2825a86ae75717cae3452b5334ee748c57988d..fb8bfbbdac781a2622c7828320186292ac6835f7 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -25,7 +25,7 @@
 *}
 {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}