Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:33:25 +0400
committerFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:33:25 +0400
commitf229dbc8cc1df2fbe90bdcd5a9e7762abc5fc8ae (patch)
tree217e4a245fe559cc39c599378d2965e1a3f1ff91 /plugins/CustomVariables
parente3bbc07eb21e8a2c1ea53d4ac55d94bf47214353 (diff)
Replace create_function calls with lambda functions.
This allows the IDE to pick up all code! refs #4113
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r--plugins/CustomVariables/API.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/CustomVariables/API.php b/plugins/CustomVariables/API.php
index 21bdca1f55..7e42e6de49 100644
--- a/plugins/CustomVariables/API.php
+++ b/plugins/CustomVariables/API.php
@@ -113,10 +113,11 @@ class API
// Hack Ecommerce product price tracking to display correctly
$dataTable->renameColumn('price_viewed', 'price');
}
- $dataTable->queueFilter('ColumnCallbackReplace', array('label', create_function('$label', '
- return $label == \\Piwik\\Plugins\\CustomVariables\\Archiver::LABEL_CUSTOM_VALUE_NOT_DEFINED
- ? "' . Piwik_Translate('General_NotDefined', Piwik_Translate('CustomVariables_ColumnCustomVariableValue')) . '"
- : $label;')));
+ $dataTable->queueFilter('ColumnCallbackReplace', array('label', function($label) {
+ return $label == \Piwik\Plugins\CustomVariables\Archiver::LABEL_CUSTOM_VALUE_NOT_DEFINED
+ ? Piwik_Translate('General_NotDefined', Piwik_Translate('CustomVariables_ColumnCustomVariableValue'))
+ : $label;
+ }));
return $dataTable;
}
}