Fix For select language component, we force on root
This commit is contained in:
parent
34778937c3
commit
fb02edf254
@ -1459,6 +1459,7 @@ class Website extends CommonObject
|
|||||||
$url = preg_replace('/(\?|&)l=([a-zA-Z_]*)/', '', $url); // We remove param l from url
|
$url = preg_replace('/(\?|&)l=([a-zA-Z_]*)/', '', $url); // We remove param l from url
|
||||||
//$url = preg_replace('/(\?|&)lang=([a-zA-Z_]*)/', '', $url); // We remove param lang from url
|
//$url = preg_replace('/(\?|&)lang=([a-zA-Z_]*)/', '', $url); // We remove param lang from url
|
||||||
$url .= (preg_match('/\?/', $url) ? '&' : '?').'l=';
|
$url .= (preg_match('/\?/', $url) ? '&' : '?').'l=';
|
||||||
|
if (! preg_match('/^\//', $url)) $url = '/'.$url;
|
||||||
|
|
||||||
$HEIGHTOPTION = 40;
|
$HEIGHTOPTION = 40;
|
||||||
$MAXHEIGHT = 4 * $HEIGHTOPTION;
|
$MAXHEIGHT = 4 * $HEIGHTOPTION;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user