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/staffapplication | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/staffapplication')
| -rw-r--r-- | templates/themes/staffapplication/info.php | 27 | ||||
| -rw-r--r-- | templates/themes/staffapplication/staffapplicationpost.php | 8 | ||||
| -rw-r--r-- | templates/themes/staffapplication/theme.php | 6 |
3 files changed, 8 insertions, 33 deletions
diff --git a/templates/themes/staffapplication/info.php b/templates/themes/staffapplication/info.php index a8093093..64915b38 100644 --- a/templates/themes/staffapplication/info.php +++ b/templates/themes/staffapplication/info.php @@ -1,35 +1,20 @@ <?php - $theme = Array(); + $theme = []; // Theme name - $theme['name'] = 'StaffApplication'; + $theme['name'] = \StaffApplication::class; // Description (you can use Tinyboard markup here) $theme['description'] = 'Staff Application theme.'; $theme['version'] = 'v0.0.1'; // Theme configuration - $theme['config'] = Array(); + $theme['config'] = []; - $theme['config'][] = Array( - 'title' => 'Site title', - 'name' => 'title', - 'type' => 'text' - ); + $theme['config'][] = ['title' => 'Site title', 'name' => 'title', 'type' => 'text']; - $theme['config'][] = Array( - 'title' => 'Slogan', - 'name' => 'subtitle', - 'type' => 'text', - 'comment' => '(optional)' - ); + $theme['config'][] = ['title' => 'Slogan', 'name' => 'subtitle', 'type' => 'text', 'comment' => '(optional)']; - $theme['config'][] = Array( - 'title' => 'File', - 'name' => 'file', - 'type' => 'text', - 'default' => $config['file_index'], - 'comment' => '(eg. "index.html")' - ); + $theme['config'][] = ['title' => 'File', 'name' => 'file', 'type' => 'text', 'default' => $config['file_index'], 'comment' => '(eg. "index.html")']; // Unique function name for building everything $theme['build_function'] = 'staffapplication_build'; diff --git a/templates/themes/staffapplication/staffapplicationpost.php b/templates/themes/staffapplication/staffapplicationpost.php index 0e1b14ca..4d850cc2 100644 --- a/templates/themes/staffapplication/staffapplicationpost.php +++ b/templates/themes/staffapplication/staffapplicationpost.php @@ -43,12 +43,6 @@ $displaymessage = "<p style=\"text-align:center;\">ANTISPAM NOT SET</p>\r\n"; } $displaymessage .= '<span style="text-align:center; display: block;" >[ <a href="https://lainchan.org/"> Return Home </a> ]</span>'; -echo Element('page.html', array( - 'index' => $config['root'], - 'title' => _('Staff Application'), - 'config' => $config, - 'boardlist' => createBoardlist(isset($mod) ? $mod : false), - 'body' => $displaymessage, - ) +echo Element('page.html', ['index' => $config['root'], 'title' => _('Staff Application'), 'config' => $config, 'boardlist' => createBoardlist($mod ?? false), 'body' => $displaymessage] ); ?> diff --git a/templates/themes/staffapplication/theme.php b/templates/themes/staffapplication/theme.php index a827a7f8..e94e09b7 100644 --- a/templates/themes/staffapplication/theme.php +++ b/templates/themes/staffapplication/theme.php @@ -24,11 +24,7 @@ public static function htmlpage($settings) { global $config; - return Element('themes/staffapplication/staffapplication.html', Array( - 'settings' => $settings, - 'config' => $config, - 'boardlist' => createBoardlist() - )); + return Element('themes/staffapplication/staffapplication.html', ['settings' => $settings, 'config' => $config, 'boardlist' => createBoardlist()]); } public static function phppage($settings) { global $config; |
