summaryrefslogtreecommitdiff
path: root/templates/themes/public_banlist/info.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /templates/themes/public_banlist/info.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/public_banlist/info.php')
-rw-r--r--templates/themes/public_banlist/info.php20
1 files changed, 4 insertions, 16 deletions
diff --git a/templates/themes/public_banlist/info.php b/templates/themes/public_banlist/info.php
index 006ac38e..6f928d9a 100644
--- a/templates/themes/public_banlist/info.php
+++ b/templates/themes/public_banlist/info.php
@@ -1,5 +1,5 @@
<?php
- $theme = Array();
+ $theme = [];
// Theme name
$theme['name'] = 'Public Banlist';
@@ -10,23 +10,11 @@ copies the banlist interface from moderation panel.';
$theme['version'] = 'v0.1';
// Theme configuration
- $theme['config'] = Array();
+ $theme['config'] = [];
- $theme['config'][] = Array(
- 'title' => 'JSON feed file',
- 'name' => 'file_json',
- 'type' => 'text',
- 'default' => 'bans.json',
- 'comment' => '(eg. "bans.json")'
- );
+ $theme['config'][] = ['title' => 'JSON feed file', 'name' => 'file_json', 'type' => 'text', 'default' => 'bans.json', 'comment' => '(eg. "bans.json")'];
- $theme['config'][] = Array(
- 'title' => 'Main HTML file',
- 'name' => 'file_bans',
- 'type' => 'text',
- 'default' => 'bans.html',
- 'comment' => '(eg. "bans.html")'
- );
+ $theme['config'][] = ['title' => 'Main HTML file', 'name' => 'file_bans', 'type' => 'text', 'default' => 'bans.html', 'comment' => '(eg. "bans.html")'];
// Unique function name for building everything
$theme['build_function'] = 'pbanlist_build';