Moved hardcoded html filepaths into config file for extensibility (#354)

Co-authored-by: chatfield <chatfield@creatuity.com>
Co-authored-by: Fred Brennan <copypaste@kittens.ph>
This commit is contained in:
C Hatfield
2022-08-29 09:50:45 -05:00
committed by GitHub
parent 0f94915fdf
commit ae2d91c534
7 changed files with 129 additions and 68 deletions

View File

@@ -15,5 +15,5 @@ if ($config['report_captcha']) {
$captcha = null;
}
$body = Element('report.html', ['global' => $global, 'post' => $post, 'board' => $board, 'captcha' => $captcha, 'config' => $config]);
echo Element('page.html', ['config' => $config, 'body' => $body]);
$body = Element($config['file_report'], ['global' => $global, 'post' => $post, 'board' => $board, 'captcha' => $captcha, 'config' => $config]);
echo Element($config['file_page_template'], ['config' => $config, 'body' => $body]);