summaryrefslogtreecommitdiff
path: root/templates/themes/categories/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/categories/theme.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/categories/theme.php')
-rw-r--r--templates/themes/categories/theme.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php
index 1ccfe451..d76fd7fc 100644
--- a/templates/themes/categories/theme.php
+++ b/templates/themes/categories/theme.php
@@ -29,7 +29,7 @@
public static function homepage($settings) {
global $config;
- return Element('themes/categories/frames.html', Array('config' => $config, 'settings' => $settings));
+ return Element('themes/categories/frames.html', ['config' => $config, 'settings' => $settings]);
}
// Build news page
@@ -39,12 +39,7 @@
$query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error());
$news = $query->fetchAll(PDO::FETCH_ASSOC);
- return Element('themes/categories/news.html', Array(
- 'settings' => $settings,
- 'config' => $config,
- 'news' => $news,
- 'boardlist' => createBoardlist(false)
- ));
+ return Element('themes/categories/news.html', ['settings' => $settings, 'config' => $config, 'news' => $news, 'boardlist' => createBoardlist(false)]);
}
// Build sidebar
@@ -58,15 +53,11 @@
$title = boardTitle($board);
if (!$title)
$title = $board; // board doesn't exist, but for some reason you want to display it anyway
- $board = Array('title' => $title, 'uri' => sprintf($config['board_path'], $board));
+ $board = ['title' => $title, 'uri' => sprintf($config['board_path'], $board)];
}
}
- return Element('themes/categories/sidebar.html', Array(
- 'settings' => $settings,
- 'config' => $config,
- 'categories' => $categories
- ));
+ return Element('themes/categories/sidebar.html', ['settings' => $settings, 'config' => $config, 'categories' => $categories]);
}
};