summaryrefslogtreecommitdiff
path: root/templates/themes/irc
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/irc
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/irc')
-rw-r--r--templates/themes/irc/info.php37
-rw-r--r--templates/themes/irc/theme.php4
2 files changed, 2 insertions, 39 deletions
diff --git a/templates/themes/irc/info.php b/templates/themes/irc/info.php
index 8ca3be0a..2c46f3c0 100644
--- a/templates/themes/irc/info.php
+++ b/templates/themes/irc/info.php
@@ -1,38 +1,3 @@
<?php
-$theme = array(
- 'name' => 'IRC',
- 'description' => 'Display a link to the lainchan irc',
- 'version' => 'v1',
-
- 'config' => array(
- array('title' => 'Page title',
- 'name' => 'title',
- 'type' => 'text'),
-
- array('title' => 'Slogan',
- 'name' => 'subtitle',
- 'type' => 'text',
- 'comment' => '(optional)'),
-
- array('title' => 'File',
- 'name' => 'file',
- 'type' => 'text',
- 'default' => 'irc.html'),
-
- array('title' => 'Channel',
- 'name' => 'channel',
- 'type' => 'text',
- 'default' => 'general'),
-
- array('title' => 'Server',
- 'name' => 'server',
- 'type' => 'text',
- 'default' => 'irc.lainchan.org'),
-
- array('title' => 'Port',
- 'name' => 'port',
- 'type' => 'text',
- 'default' => '6697')),
-
- 'build_function' => 'irc_build');
+$theme = ['name' => 'IRC', 'description' => 'Display a link to the lainchan irc', 'version' => 'v1', 'config' => [['title' => 'Page title', 'name' => 'title', 'type' => 'text'], ['title' => 'Slogan', 'name' => 'subtitle', 'type' => 'text', 'comment' => '(optional)'], ['title' => 'File', 'name' => 'file', 'type' => 'text', 'default' => 'irc.html'], ['title' => 'Channel', 'name' => 'channel', 'type' => 'text', 'default' => 'general'], ['title' => 'Server', 'name' => 'server', 'type' => 'text', 'default' => 'irc.lainchan.org'], ['title' => 'Port', 'name' => 'port', 'type' => 'text', 'default' => '6697']], 'build_function' => 'irc_build'];
?>
diff --git a/templates/themes/irc/theme.php b/templates/themes/irc/theme.php
index c9b45c33..fd98a122 100644
--- a/templates/themes/irc/theme.php
+++ b/templates/themes/irc/theme.php
@@ -18,9 +18,7 @@ class irc {
global $config;
return Element('themes/irc/irc.html',
- array('settings' => $settings,
- 'config' => $config,
- 'boardlist' => createBoardlist()));
+ ['settings' => $settings, 'config' => $config, 'boardlist' => createBoardlist()]);
}
}