]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Theme.php
Merge pull request #11258 from MrPetovan/bug/11234-categories-profile
[friendica.git] / src / Core / Theme.php
index 6eb1587be37a665d1d87129a28b0ac90cb818e72..57dfaa4d634ca5522493d5c4d1055e4b6ed603bd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -88,9 +88,9 @@ class Theme
                        return $info;
                }
 
-               $stamp1 = microtime(true);
+               DI::profiler()->startRecording('file');
                $theme_file = file_get_contents("view/theme/$theme/theme.php");
-               DI::profiler()->saveTimestamp($stamp1, "file");
+               DI::profiler()->stopRecording();
 
                $result = preg_match("|/\*.*\*/|msU", $theme_file, $matches);