]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Addon.php
Removing MySQL workaround
[friendica.git] / src / Core / Addon.php
index 511364b8acb0cff9bb6180e97d6dd8441bea288b..db358db450a66f82512145a9c0e39dcf8702b686 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -236,9 +236,9 @@ class Addon
                        return $info;
                }
 
-               $stamp1 = microtime(true);
+               DI::profiler()->startRecording('file');
                $f = file_get_contents("addon/$addon/$addon.php");
-               DI::profiler()->saveTimestamp($stamp1, "file");
+               DI::profiler()->stopRecording();
 
                $r = preg_match("|/\*.*\*/|msU", $f, $m);