Webmastersite.net
Register Log In

Global Variable default

Comments on Global Variable default

rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Comments: 42
rolij
Posted May 06, 2006 - 9:46 AM:

the global variable {VISITORLANGUAGE} does not seem to be working.

how can I get it to work or in other words, how can I get a value which tells me what language is displayed?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 06, 2006 - 5:45 PM:

Actually it's a psychic-documentation issue, not a bug. It's available in 3.3.17, which hasn't been released yet, and I wrote it into the manual yesterday so that I wouldn't forget it.

To impliment it in 3.3.15 you can open classes/settings.php and replace
 function sponsorduration() { return $this->feeduration; }
with
 function sponsorduration() { return $this->feeduration; }

function visitorlanguage()
{
global $languagegroup;
return $languagegroup;
}
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.