mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Minor improvements (#884)
* Minor improvements * Update displaying_torrent.php * Updated * Updated * Updated * Update terms.php
This commit is contained in:
parent
4b453de64a
commit
209b8cd638
20 changed files with 207 additions and 211 deletions
|
@ -16,15 +16,15 @@ require __DIR__ . '/pagestart.php';
|
|||
require INC_DIR . '/bbcode.php';
|
||||
|
||||
if (isset($_POST['post']) && $bb_cfg['terms'] != $_POST['message']) {
|
||||
bb_update_config(array('terms' => $_POST['message']));
|
||||
bb_update_config(['terms' => $_POST['message']]);
|
||||
bb_die($lang['CONFIG_UPDATED']);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
$template->assign_vars([
|
||||
'S_ACTION' => 'admin_terms.php',
|
||||
'EXT_LINK_NW' => $bb_cfg['ext_link_new_win'],
|
||||
'MESSAGE' => $bb_cfg['terms'] ?: '',
|
||||
'PREVIEW_HTML' => isset($_REQUEST['preview']) ? bbcode2html($_POST['message']) : '',
|
||||
));
|
||||
]);
|
||||
|
||||
print_page('admin_terms.tpl', 'admin');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue