diff --git a/administrator/language/en-GB/en-GB.plg_system_debug.ini b/administrator/language/en-GB/en-GB.plg_system_debug.ini index 72d2d304239df..d7cbd165eb224 100644 --- a/administrator/language/en-GB/en-GB.plg_system_debug.ini +++ b/administrator/language/en-GB/en-GB.plg_system_debug.ini @@ -51,6 +51,8 @@ PLG_DEBUG_FIELD_QUERIES_DESC="Display a list of the queries executed while displ PLG_DEBUG_FIELD_QUERIES_LABEL="Show Queries" PLG_DEBUG_FIELD_QUERY_TYPES_DESC="Display a list of unique query types and their number of occurrences for the current page. Useful for finding out about repeated queries that are either redundant or which can be grouped into a single, more efficient query." PLG_DEBUG_FIELD_QUERY_TYPES_LABEL="Show Query Types" +PLG_DEBUG_FIELD_SESSION_DESC="Display the session data." +PLG_DEBUG_FIELD_SESSION_LABEL="Show Session Data" PLG_DEBUG_FIELD_STRIP_FIRST_DESC="In multi-word strings, always strip the first word." PLG_DEBUG_FIELD_STRIP_FIRST_LABEL="Strip First Word" PLG_DEBUG_FIELD_STRIP_PREFIX_DESC="Strip words from the beginning of the string. For multiple words, use the format: (word1|word2)." diff --git a/plugins/system/debug/debug.php b/plugins/system/debug/debug.php index 1b98e7db1145b..6ab21e6ab6837 100644 --- a/plugins/system/debug/debug.php +++ b/plugins/system/debug/debug.php @@ -264,7 +264,10 @@ public function onAfterRespond() $html[] = $this->display('errors'); } - $html[] = $this->display('session'); + if ($this->params->get('session', 1)) + { + $html[] = $this->display('session'); + } if ($this->params->get('profile', 1)) { diff --git a/plugins/system/debug/debug.xml b/plugins/system/debug/debug.xml index 43775ae9d31ff..c8ffe5219a329 100644 --- a/plugins/system/debug/debug.xml +++ b/plugins/system/debug/debug.xml @@ -28,6 +28,18 @@ size="10" /> + + + + + -