Skip to content

Commit ea5ab8d

Browse files
committed
Turn hasLabel to false by default and always show label if it is true
1 parent d3231d2 commit ea5ab8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Debug/Toolbar/Collectors/BaseCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class BaseCollector
6464
*
6565
* @var bool
6666
*/
67-
protected $hasLabel = true;
67+
protected $hasLabel = false;
6868

6969
/**
7070
* Whether this collector has data that

system/Debug/Toolbar/Views/toolbar.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<span><?= $totalMemory ?> MB</span>
3434
<span class="ci-label"><a href="javascript: void(0)" data-tab="ci-timeline">Timeline</a></span>
3535
<?php foreach ($this->collectors as $c) : ?>
36-
<?php if ($c->hasTabContent() && $c->hasLabel()) : ?>
36+
<?php if ($c->hasTabContent() || $c->hasLabel()) : ?>
3737
<span class="ci-label">
3838
<a href="javascript: void(0)" data-tab="ci-<?= esc($c->getTitle(true)) ?>" >
3939
<?= esc($c->getTitle()) ?>

0 commit comments

Comments
 (0)