From 6a41819d0f47668189132548378b33ff1857ca65 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 17 Mar 2019 00:55:18 +0100 Subject: [PATCH] Enhance the perf page. --- htdocs/admin/system/perf.php | 14 +++++++++++++- htdocs/langs/en_US/admin.lang | 3 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/system/perf.php b/htdocs/admin/system/perf.php index a028d1ccd7f..67f75c911aa 100644 --- a/htdocs/admin/system/perf.php +++ b/htdocs/admin/system/perf.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2013-2019 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -70,6 +70,18 @@ else } print '
'; +// Module debugbar +print '
'; +print ''.$langs->trans("DebugBar").': '; +$test=empty($conf->debugbar->enabled); +if ($test) print img_picto('', 'tick.png').' '.$langs->trans("NotInstalled"); +else +{ + print img_picto('', 'warning').' '.$langs->trans("DebugBarModuleActivated"); + //print ' '.$langs->trans("MoreInformation").' XDebug admin page'; +} +print '
'; + // Applicative cache print '
'; print ''.$langs->trans("ApplicativeCache").': '; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 3261707579f..6719b35f795 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1870,4 +1870,5 @@ GeneralOptions=General Options LogsLinesNumber=Number of lines to show on logs tab UseDebugBar=Use the debug bar DEBUGBAR_LOGS_LINES_NUMBER=Number of last log lines to keep in console -WarningValueHigherSlowsDramaticalyOutput=Warning, higher values slows dramaticaly output \ No newline at end of file +WarningValueHigherSlowsDramaticalyOutput=Warning, higher values slows dramaticaly output +DebugBarModuleActivated=Module debugbar is activated and slows dramaticaly the interface \ No newline at end of file