From 7f6449b1668e54e670787715ce3a779574b7549d Mon Sep 17 00:00:00 2001 From: exside Date: Sat, 13 Sep 2014 14:20:25 +0200 Subject: [PATCH] Fix deprecated ->getMicrotime() in plugin --- .../elementhelper/elements/plugins/plugin.elementhelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/components/elementhelper/elements/plugins/plugin.elementhelper.php b/core/components/elementhelper/elements/plugins/plugin.elementhelper.php index 38ff25c..9fb4417 100644 --- a/core/components/elementhelper/elements/plugins/plugin.elementhelper.php +++ b/core/components/elementhelper/elements/plugins/plugin.elementhelper.php @@ -7,7 +7,7 @@ if ($debug) { $modx->setLogLevel(modX::LOG_LEVEL_INFO); - $timestart = $modx->getMicroTime(); + $timestart = microtime(true); } // Set up native modx caching @@ -294,7 +294,7 @@ function get_files($directory_path, $modx) if ($debug) { - $timeend = $modx->getMicroTime(); + $timeend = microtime(true); $modx->log(modX::LOG_LEVEL_INFO, '{modPlugin}: ' . $packagename . ' executed in ' . sprintf('%2.4f s', $timeend - $timestart)); // Set logLevel back to ERROR, preventing a lot of crap getting logged