From: Michael Vogel Date: Sat, 26 Sep 2015 09:00:16 +0000 (+0200) Subject: Don't show the rendertime data and jappix in minimal mode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a01db4346aaa3bd3d6351fa93fbab683a7b74bee;p=friendica-addons.git Don't show the rendertime data and jappix in minimal mode. --- diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index 58214531..08d82112 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -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; diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 213ed316..d104f12b 100755 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -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.'
'.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),