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:
2
post.php
2
post.php
@@ -352,7 +352,7 @@ if (isset($_POST['delete'])) {
|
||||
|
||||
if (!isset($_POST['json_response'])) {
|
||||
$index = $root . $board['dir'] . $config['file_index'];
|
||||
echo Element('page.html', array('config' => $config, 'body' => '<div style="text-align:center"><a href="javascript:window.close()">[ ' . _('Close window') ." ]</a> <a href='$index'>[ " . _('Return') . ' ]</a></div>', 'title' => _('Report submitted!')));
|
||||
echo Element($config['file_page_template'], array('config' => $config, 'body' => '<div style="text-align:center"><a href="javascript:window.close()">[ ' . _('Close window') ." ]</a> <a href='$index'>[ " . _('Return') . ' ]</a></div>', 'title' => _('Report submitted!')));
|
||||
} else {
|
||||
header('Content-Type: text/json');
|
||||
echo json_encode(array('success' => true));
|
||||
|
Reference in New Issue
Block a user