diff options
| author | 2024-11-28 17:11:04 +0100 | |
|---|---|---|
| committer | 2024-11-28 17:11:04 +0100 | |
| commit | 15745d42b779ad14efde2932ab116f45eee39246 (patch) | |
| tree | 2528a36184d8152d4f2d90dc73df680f84bbe1d1 /app/layout | |
| parent | 604b186638276203c8495a3ee86da0cc240ab4d0 (diff) | |
Upgrade code to php 8.1 (#6748)
* revert
Fix code indentation
Fix code
Upgrade code to php 8.1
* fix remarques
* code review
* code review
* code review
* Apply suggestions from code review
* code review
* Fixes
* Many remainging updates of array syntax
* Lost case 'reading-list'
* Uneeded PHPDoc
---------
Co-authored-by: Luc Sanchez <l.sanchez-prestataire@alptis.fr>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index f8b687f74..c4aff5c55 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -12,12 +12,12 @@ <?php if (FreshRSS_Auth::hasAccess()) { ?> <div id="nav_menu_actions" class="group"> <?php - $states = array( + $states = [ 'read' => FreshRSS_Entry::STATE_READ, 'unread' => FreshRSS_Entry::STATE_NOT_READ, 'starred' => FreshRSS_Entry::STATE_FAVORITE, 'non-starred' => FreshRSS_Entry::STATE_NOT_FAVORITE, - ); + ]; foreach ($states as $state_str => $state) { $state_enabled = FreshRSS_Context::isStateEnabled($state); @@ -110,17 +110,17 @@ $string_mark = _t('index.menu.mark_cat_read'); } - $mark_read_url = array( + $mark_read_url = [ 'c' => 'entry', 'a' => 'read', - 'params' => array( + 'params' => [ 'get' => $get, 'nextGet' => FreshRSS_Context::$next_get, 'idMax' => FreshRSS_Context::$id_max, 'search' => htmlspecialchars_decode(FreshRSS_Context::$search->getRawInput(), ENT_QUOTES), 'state' => FreshRSS_Context::$state, - ), - ); + ], + ]; $mark_unread_url = $mark_read_url; $mark_unread_url['params']['is_read'] = '0'; |
