diff options
author | vdigital <vdigital@piwigo.org> | 2009-06-30 21:16:24 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2009-06-30 21:16:24 +0000 |
commit | ccb0eaca47dafd34c99f3ba33653510b043302d7 (patch) | |
tree | 88c3e54eff8ea1e78b2b355d4118192e52ba5a5a /plugins/language_switch/flags.tpl | |
parent | 91c7200b59367be519aad81e3d1724fd3bdc1c0d (diff) |
Bug 964 fixed and more
+ ?&lang=en_UK" => ?lang=en_UK"
+ =&lang=en_UK" => &lang=en_UK"
+ Works for any combinations of
$conf['question_mark_in_urls']
$conf['php_extension_in_urls']
=> BUT force a return to home in some cases.
+ Full technical code review
git-svn-id: http://piwigo.org/svn/branches/2.0@3477 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/language_switch/flags.tpl')
-rw-r--r-- | plugins/language_switch/flags.tpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/language_switch/flags.tpl b/plugins/language_switch/flags.tpl index 7a30553ee..06d438550 100644 --- a/plugins/language_switch/flags.tpl +++ b/plugins/language_switch/flags.tpl @@ -17,7 +17,7 @@ <ul class="flag-pan"> {foreach from=$lang_switch.flags key=code item=flag name=f} <li> - <a rel="nofollow" href="{$flag.url}"> + <a rel="nofollow" href="{$SCRIPT_NAME}{$flag.url}"> <img class="flags" src="{$flag.img}" alt="{$flag.alt}" title="{$flag.alt}"/> </a> </li> @@ -35,14 +35,14 @@ </li> {html_head} {if $themeconf.template=='yoga' and $themeconf.theme=='Sylvia'} -<link rel="stylesheet" type="text/css" href="{$LANGUAGE_SWITCH_PATH|@cat:'language_switch.css'}"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch.css'}"> {else} -<link rel="stylesheet" type="text/css" href="{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-default.css'}"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-default.css'}"> {/if} {if Componant_exists($LANGUAGE_SWITCH_PATH, 'language_switch-local.css')} -<link rel="stylesheet" type="text/css" href="{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-local.css'}"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-local.css'}"> {/if} <!--[if lte IE 6]> -<link rel="stylesheet" type="text/css" href="{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-ie6.css'}"> +<link rel="stylesheet" type="text/css" href="{$ROOT_URL}{$LANGUAGE_SWITCH_PATH|@cat:'language_switch-ie6.css'}"> <![endif]--> {/html_head}
\ No newline at end of file |