mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Remove global call to unneeded string, and add return_array() function
This commit is contained in:
parent
0c542fc251
commit
31382231a0
@ -29,10 +29,11 @@
|
||||
var $BROWSER_AGENT;
|
||||
var $BROWSER_VER;
|
||||
var $BROWSER_PLATFORM;
|
||||
var $data;
|
||||
|
||||
function browser ()
|
||||
{
|
||||
global $HTTP_USER_AGENT,$log_version;
|
||||
global $HTTP_USER_AGENT;
|
||||
/*
|
||||
Determine browser and version
|
||||
*/
|
||||
@ -96,6 +97,17 @@
|
||||
*/
|
||||
}
|
||||
|
||||
function return_array()
|
||||
{
|
||||
$this->data = array(
|
||||
'agent' = $this->get_agent,
|
||||
'version' = $this->get_version,
|
||||
'platform' = $this->get_platform
|
||||
);
|
||||
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
function get_agent ()
|
||||
{
|
||||
return $this->BROWSER_AGENT;
|
||||
|
Loading…
Reference in New Issue
Block a user