Fix potential incorrect link building
This commit is contained in:
@ -69,7 +69,7 @@ if($language!=='en'){
|
|||||||
function print_langs(){
|
function print_langs(){
|
||||||
global $I, $L;
|
global $I, $L;
|
||||||
echo "<small>$I[language]: ";
|
echo "<small>$I[language]: ";
|
||||||
$query=preg_replace('/(&?lang=[a-z_\-]*)/i', '', $_SERVER['QUERY_STRING']);
|
$query=ltrim(preg_replace('/&?lang=[a-z_\-]*/i', '', $_SERVER['QUERY_STRING']), '&');
|
||||||
foreach($L as $code=>$name){
|
foreach($L as $code=>$name){
|
||||||
if($query===''){
|
if($query===''){
|
||||||
$uri="?lang=$code";
|
$uri="?lang=$code";
|
||||||
|
Reference in New Issue
Block a user