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/faq | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/faq')
| -rw-r--r-- | templates/themes/faq/info.php | 27 | ||||
| -rw-r--r-- | templates/themes/faq/theme.php | 6 |
2 files changed, 7 insertions, 26 deletions
diff --git a/templates/themes/faq/info.php b/templates/themes/faq/info.php index c81d52ab..019eff88 100644 --- a/templates/themes/faq/info.php +++ b/templates/themes/faq/info.php @@ -1,35 +1,20 @@ <?php - $theme = Array(); + $theme = []; // Theme name - $theme['name'] = 'FAQ'; + $theme['name'] = \FAQ::class; // Description (you can use Tinyboard markup here) $theme['description'] = 'FAQ because Lainons have questions'; $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' => "faq.html", - 'comment' => '(eg. "faq.html")' - ); + $theme['config'][] = ['title' => 'File', 'name' => 'file', 'type' => 'text', 'default' => "faq.html", 'comment' => '(eg. "faq.html")']; // Unique function name for building everything diff --git a/templates/themes/faq/theme.php b/templates/themes/faq/theme.php index 28db35a2..18421482 100644 --- a/templates/themes/faq/theme.php +++ b/templates/themes/faq/theme.php @@ -22,11 +22,7 @@ // Build FAQ page public static function homepage($settings) { global $config; - return Element('themes/faq/index.html', Array( - 'settings' => $settings, - 'config' => $config, - 'boardlist' => createBoardlist(), - )); + return Element('themes/faq/index.html', ['settings' => $settings, 'config' => $config, 'boardlist' => createBoardlist()]); } }; |
