diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
| commit | 2c69095a1edf7474073451285238659d0f62ce3f (patch) | |
| tree | 5dee476605402c66dc2853d0836b29f6aedae62b /templates/themes/public_banlist/theme.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/public_banlist/theme.php')
| -rw-r--r-- | templates/themes/public_banlist/theme.php | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/templates/themes/public_banlist/theme.php b/templates/themes/public_banlist/theme.php index d56a6481..3b27d764 100644 --- a/templates/themes/public_banlist/theme.php +++ b/templates/themes/public_banlist/theme.php @@ -25,7 +25,7 @@ public static function gen_json($settings) { ob_start(); - Bans::stream_json(false, true, true, array(), array("/\bcp\b/i", "/porn/i")); + Bans::stream_json(false, true, true, [], ["/\bcp\b/i", "/porn/i"]); $out = ob_get_contents(); ob_end_clean(); return $out; @@ -35,22 +35,16 @@ public static function homepage($settings) { global $config; - return Element('page.html', array( - 'config' => $config, - 'mod' => false, - #'hide_dashboard_link' => true, - 'title' => _("Ban list"), - 'subtitle' => "", - 'boardlist' => createBoardlist(), - #'nojavascript' => true, - 'body' => Element('mod/ban_list.html', array( - 'mod' => false, - 'boards' => "[]", - 'token' => false, - 'token_json' => false, - 'uri_json' => $config['dir']['home'] . $settings['file_json'], - )) - )); + return Element('page.html', [ + 'config' => $config, + 'mod' => false, + #'hide_dashboard_link' => true, + 'title' => _("Ban list"), + 'subtitle' => "", + 'boardlist' => createBoardlist(), + #'nojavascript' => true, + 'body' => Element('mod/ban_list.html', ['mod' => false, 'boards' => "[]", 'token' => false, 'token_json' => false, 'uri_json' => $config['dir']['home'] . $settings['file_json']]), + ]); } }; |
