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/Actions | |
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/Actions')
-rw-r--r-- | plugins/Actions/API.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php index 1a7a551fa8..9b05536227 100644 --- a/plugins/Actions/API.php +++ b/plugins/Actions/API.php @@ -182,7 +182,7 @@ class API // Keep only pages which are following site search $dataTable->filter('ColumnCallbackDeleteRow', array( 'nb_hits_following_search', - create_function('$value', 'return $value > 0;') + function($value) { return $value > 0; } )); } @@ -322,7 +322,7 @@ class API $dataTable->filter('ColumnCallbackDeleteRow', array( Metrics::INDEX_SITE_SEARCH_HAS_NO_RESULT, - create_function('$value', 'return $value >= 1;') + function($value) { return $value >= 1; } )); $dataTable->deleteRow(DataTable::ID_SUMMARY_ROW); $dataTable->deleteColumn(Metrics::INDEX_SITE_SEARCH_HAS_NO_RESULT); |