Skip to content
Permalink
Browse files

fix wrong refactoring

  • Loading branch information...
flack committed Aug 12, 2019
1 parent 4c6769e commit 953731f272cda5055a6fd590e08e18303828e43d
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/org/openpsa/mypage/style/show-updates.php
@@ -1,10 +1,9 @@
<?php
$view_types = [
'today',
'yesterday',
];
$formatter = $data['l10n']->get_formatter();
foreach (array_filter($view_types) as $type) {
foreach (['today', 'yesterday'] as $type) {
if (empty($data[$type])) {
continue;
}
echo "<div class=\"area\">\n";
echo "<h2>" . $data['l10n']->get("updated " . $type) . "</h2>\n";
echo "<ul class=\"updated\">\n";

0 comments on commit 953731f

Please sign in to comment.
You can’t perform that action at this time.