summaryrefslogtreecommitdiff
path: root/templates/themes/basic/theme.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/basic/theme.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/basic/theme.php')
-rw-r--r--templates/themes/basic/theme.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/themes/basic/theme.php b/templates/themes/basic/theme.php
index 6ba09ce6..4d79d73f 100644
--- a/templates/themes/basic/theme.php
+++ b/templates/themes/basic/theme.php
@@ -28,12 +28,7 @@
$query = query("SELECT * FROM ``news`` ORDER BY `time` DESC" . ($settings['no_recent'] ? ' LIMIT ' . $settings['no_recent'] : '')) or error(db_error());
$news = $query->fetchAll(PDO::FETCH_ASSOC);
- return Element('themes/basic/index.html', Array(
- 'settings' => $settings,
- 'config' => $config,
- 'boardlist' => createBoardlist(),
- 'news' => $news
- ));
+ return Element('themes/basic/index.html', ['settings' => $settings, 'config' => $config, 'boardlist' => createBoardlist(), 'news' => $news]);
}
};