Skip to content

Commit

Permalink
Don't show the rendertime data and jappix in minimal mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
annando committed Sep 26, 2015
1 parent 39cdc9c commit a01db43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jappixmini/jappixmini.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion rendertime/rendertime.php
Expand Up @@ -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),
Expand Down

0 comments on commit a01db43

Please sign in to comment.