]> git.mxchange.org Git - friendica-addons.git/blobdiff - rendertime/rendertime.php
Merge remote-tracking branch 'upstream/develop' into more-abstraction
[friendica-addons.git] / rendertime / rendertime.php
index a638865a210e3aedc8137dd71454cd704cf8f2ee..ae7f6d6659fddb59d6dec128c13cb8d5d93a4aa9 100644 (file)
@@ -3,7 +3,7 @@
  * Name: rendertime
  * Description: Shows the time that was needed to render the current page
  * Version: 0.1
- * Author: Michael Vvogel <http://pirati.ca/profile/heluecht>
+ * Author: Michael Vogel <http://pirati.ca/profile/heluecht>
  *
  */
 use Friendica\Core\Addon;
@@ -27,7 +27,7 @@ function rendertime_page_end(&$a, &$o) {
 
        $duration = microtime(true)-$a->performance["start"];
 
-       $ignored_modules = array("fbrowser");
+       $ignored_modules = ["fbrowser"];
        $ignored = in_array($a->module, $ignored_modules);
 
        if (is_site_admin() && ($_GET["mode"] != "minimal") && !$a->is_mobile && !$a->is_tablet && !$ignored) {
@@ -46,7 +46,7 @@ function rendertime_page_end(&$a, &$o) {
                        //round($a->performance["plugin"], 3)
                        )."</div>";
 
-               if (get_config("rendertime", "callstack")) {
+               if (Config::get("rendertime", "callstack")) {
                        $o .= "<pre>";
                        $o .= "\nDatabase Read:\n";
                        foreach ($a->callstack["database"] AS $func => $time) {