mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Notice removal
This commit is contained in:
parent
cc66d6cb36
commit
b80dc2f13a
@ -248,8 +248,8 @@ class language{
|
||||
|
||||
/**
|
||||
* Converts iso to language-name and visa-versa.
|
||||
* @param object $data
|
||||
* @return
|
||||
* @param string $data
|
||||
* @return string
|
||||
*/
|
||||
function convert($data){
|
||||
|
||||
@ -466,15 +466,16 @@ class language{
|
||||
* Convert the current URL to a multi-lang for the specified language.
|
||||
* eg. 'http://www.mydomain.com' becomes 'http://es.mydomain.com'
|
||||
* @param string $language eg. 'Spanish'
|
||||
* @return URL
|
||||
* @return string url
|
||||
*/
|
||||
function subdomainUrl($language, $url=e_REQUEST_URL)
|
||||
{
|
||||
global $pref;
|
||||
|
||||
$sitelanguage = e107::getPref('sitelanguage',null);
|
||||
|
||||
$iso = (strlen($language) == 2) ? $language : $this->convert($language);
|
||||
|
||||
$codelnk = ($language == $pref['sitelanguage']) ? "www" : $iso;
|
||||
$codelnk = ($language == $sitelanguage) ? "www" : $iso;
|
||||
|
||||
if($codelnk == '')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user