From ff46db430bd2aa265c16bbd6ff17e0bae710d332 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 8 Sep 2011 10:46:35 +0000 Subject: feature 2431: only keep MySQL on installation form git-svn-id: http://piwigo.org/svn/trunk@12103 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/language_switch/flags.tpl | 2 +- plugins/language_switch/language_switch.inc.php | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/language_switch/flags.tpl b/plugins/language_switch/flags.tpl index 9bf88dba6..3add5c1a2 100644 --- a/plugins/language_switch/flags.tpl +++ b/plugins/language_switch/flags.tpl @@ -19,7 +19,7 @@ {foreach from=$lang_switch.flags key=code item=flag name=f}
  • - + {$flag.alt} {$flag.title}
  • diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php index a1d85a4ca..3f782e1f7 100644 --- a/plugins/language_switch/language_switch.inc.php +++ b/plugins/language_switch/language_switch.inc.php @@ -100,15 +100,19 @@ UPDATE '.USER_INFOS_TABLE.' } $url_starting = get_query_string_diff(array('lang')); + + echo htmlspecialchars($url_starting).'
    '; foreach ($available_lang as $code => $displayname) { - $qlc = array ( - 'url' => str_replace( - array('=&','?&'), - array('&','?'), - add_url_params($url_starting, array('lang'=> $code)) - ), + $qlc = array ( + // 'url' => duplicate_index_url().'&lang='.$code, + 'url' => add_url_params(duplicate_index_url(), array('lang'=> $code)), + // 'url' => str_replace( + // array('=&','?&'), + // array('&','?'), + // add_url_params($url_starting, array('lang'=> $code)) + // ), 'alt' => ucwords($displayname), 'title' => substr($displayname, 0, -4), // remove [FR] or [RU] 'img' => get_root_url().'language/'.$code.'/'.$code.'.jpg', -- cgit v1.2.3