1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Switched to elan=xx as default, instead of elan=Xxxxxxx

This commit is contained in:
Cameron
2013-11-07 23:23:40 -08:00
parent 8cca981949
commit dd22369ed5

View File

@@ -111,12 +111,12 @@ function languagelinks_shortcode($parm = '')
// TODO - switch to elan=Language query when possible (now it'll break the old DOT query string format) // TODO - switch to elan=Language query when possible (now it'll break the old DOT query string format)
if(LANGLINKS_HOME) if(LANGLINKS_HOME)
{ {
$link = SITEURL.'?elan='.$languageFolder; $link = SITEURL.'?elan='.$code;
} }
else else
{ {
$e_QUERY = str_replace('['.e_MENU.']',"",e_QUERY); $e_QUERY = str_replace('['.e_MENU.']',"",e_QUERY);
$link = (!LANGLINKS_NOQUERY) ? e_REQUEST_SELF.'?['.$code.']'.$e_QUERY : e_REQUEST_SELF.'?elan='.$languageFolder; $link = (!LANGLINKS_NOQUERY) ? e_REQUEST_SELF.'?['.$code.']'.$e_QUERY : e_REQUEST_SELF.'?elan='.$code;
} }
} }