diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-04 03:33:25 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-04 03:33:25 +0400 |
commit | f229dbc8cc1df2fbe90bdcd5a9e7762abc5fc8ae (patch) | |
tree | 217e4a245fe559cc39c599378d2965e1a3f1ff91 /plugins/API | |
parent | e3bbc07eb21e8a2c1ea53d4ac55d94bf47214353 (diff) |
Replace create_function calls with lambda functions.
This allows the IDE to pick up all code!
refs #4113
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 977e4accd8..4181881132 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -146,7 +146,7 @@ class API 'segment' => 'visitorType', 'acceptedValues' => 'new, returning, returningCustomer' . ". " . Piwik_Translate('General_VisitTypeExample', '"&segment=visitorType==returning,visitorType==returningCustomer"'), 'sqlSegment' => 'log_visit.visitor_returning', - 'sqlFilter' => create_function('$type', 'return $type == "new" ? 0 : ($type == "returning" ? 1 : 2);'), + 'sqlFilter' => function($type) { return $type == "new" ? 0 : ($type == "returning" ? 1 : 2); } ); $segments[] = array( 'type' => 'metric', |