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:
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 97b6d47b58..96d5b6a15c 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -686,7 +686,9 @@ class Piwik
$outputHandler = ini_get('output_handler');
// output handlers can be stacked
- $obHandlers = array_filter(ob_list_handlers(), create_function('$var', 'return $var !== "default output handler";'));
+ $obHandlers = array_filter(ob_list_handlers(), function($var) {
+ return $var !== "default output handler";
+ });
// user defined handler via wrapper
$autoPrependFile = ini_get('auto_prepend_file');
@@ -2258,13 +2260,13 @@ class Piwik
if (Zend_Registry::get('db')->hasBulkLoader()) {
try {
-// throw new Exception('');
-
$fileSpec = array(
'delim' => "\t",
'quote' => '"', // chr(34)
'escape' => '\\\\', // chr(92)
- 'escapespecial_cb' => create_function('$str', 'return str_replace(array(chr(92), chr(34)), array(chr(92).chr(92), chr(92).chr(34)), $str);'),
+ 'escapespecial_cb' => function($str) {
+ return str_replace(array(chr(92), chr(34)), array(chr(92).chr(92), chr(92).chr(34)), $str);
+ },
'eol' => "\r\n",
'null' => 'NULL',
);