Skip to content

Commit

Permalink
allow to hide session too in plugin system debug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Sep 20, 2016
1 parent c0afccb commit c981fd6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions administrator/language/en-GB/en-GB.plg_system_debug.ini
Expand Up @@ -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)."
Expand Down
5 changes: 4 additions & 1 deletion plugins/system/debug/debug.php
Expand Up @@ -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))
{
Expand Down
20 changes: 17 additions & 3 deletions plugins/system/debug/debug.xml
Expand Up @@ -28,6 +28,18 @@
size="10"
/>

<field
name="session"
type="radio"
label="PLG_DEBUG_FIELD_SESSION_LABEL"
description="PLG_DEBUG_FIELD_SESSION_DESC"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>

<field
name="profile"
type="radio"
Expand Down Expand Up @@ -191,10 +203,12 @@
rows="4"
/>

<field name="strip-suffix" type="textarea"
cols="30"
description="PLG_DEBUG_FIELD_STRIP_SUFFIX_DESC"
<field
name="strip-suffix"
type="textarea"
label="PLG_DEBUG_FIELD_STRIP_SUFFIX_LABEL"
description="PLG_DEBUG_FIELD_STRIP_SUFFIX_DESC"
cols="30"
rows="4"
/>
</fieldset>
Expand Down

0 comments on commit c981fd6

Please sign in to comment.