]> git.mxchange.org Git - friendica-addons.git/commitdiff
Don't show the rendertime data and jappix in minimal mode.
authorMichael Vogel <icarus@dabo.de>
Sat, 26 Sep 2015 09:00:16 +0000 (11:00 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 26 Sep 2015 09:00:16 +0000 (11:00 +0200)
jappixmini/jappixmini.php
rendertime/rendertime.php

index 5821453194a3b4129a5559816178dc369168845a..08d821128db7c34d3ce0507d2db4c40566ebf593 100644 (file)
@@ -439,6 +439,9 @@ function jappixmini_script(&$a,&$s) {
 
     if(! local_user()) return;
 
+    if ($_GET["mode"] == "minimal")
+       return;
+
     $activate = get_pconfig(local_user(),'jappixmini','activate');
     $dontinsertchat = get_pconfig(local_user(), 'jappixmini','dontinsertchat');
     if (!$activate or $dontinsertchat) return;
index 213ed316aa479d22b340ee889206071d4a4d9a34..d104f12b1fdbbc1e14638df6d65d7740d956ee26 100755 (executable)
@@ -26,7 +26,7 @@ function rendertime_page_end(&$a, &$o) {
 
        $duration = microtime(true)-$a->performance["start"];
 
-       if (is_site_admin())
+       if (is_site_admin() AND ($_GET["mode"] != "minimal"))
                $o = $o.'<div class="renderinfo">'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s, Total: %s"),
                                                round($a->performance["database"], 3),
                                                round($a->performance["network"], 3),