Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion templates/element/deprecations_panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

use function Cake\Core\h;

$hasAny = count($app) + count($plugins) + count($cake) . count($vendor);
Comment thread
markstory marked this conversation as resolved.
Outdated

$printer = function ($section, $data) {
?>
<h3><?= h(ucfirst($section)) ?> </h3>
Expand All @@ -39,7 +41,11 @@
}
?>
<div class="c-deprecations-panel">
<?php
<?php if ($hasAny) : ?>
<p class="c-flash c-flash--info">No deprecations</p>
<?php
endif;

if (count($app)) :
$printer('app', $app);
endif;
Expand Down