mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -48,8 +48,8 @@ if (isset($this->request['post_id'])) {
|
|||
}
|
||||
|
||||
if (!defined('WORD_LIST_OBTAINED')) {
|
||||
$orig_word = array();
|
||||
$replace_word = array();
|
||||
$orig_word = [];
|
||||
$replace_word = [];
|
||||
obtain_word_list($orig_word, $replace_word);
|
||||
define('WORD_LIST_OBTAINED', true);
|
||||
}
|
||||
|
@ -142,10 +142,10 @@ switch ($this->request['type']) {
|
|||
$s_text = str_replace('\n', "\n", $text);
|
||||
$s_topic_title = str_replace('\n', "\n", $post['topic_title']);
|
||||
add_search_words($post_id, stripslashes($s_text), stripslashes($s_topic_title));
|
||||
update_post_html(array(
|
||||
update_post_html([
|
||||
'post_id' => $post_id,
|
||||
'post_text' => $text,
|
||||
));
|
||||
'post_text' => $text
|
||||
]);
|
||||
}
|
||||
} else {
|
||||
$this->ajax_die($lang['EMPTY_MESSAGE']);
|
||||
|
@ -276,10 +276,10 @@ switch ($this->request['type']) {
|
|||
$s_message = str_replace('\n', "\n", $message);
|
||||
$s_topic_title = str_replace('\n', "\n", $post['topic_title']);
|
||||
add_search_words($post_id, stripslashes($s_message), stripslashes($s_topic_title));
|
||||
update_post_html(array(
|
||||
update_post_html([
|
||||
'post_id' => $post_id,
|
||||
'post_text' => $message,
|
||||
));
|
||||
'post_text' => $message
|
||||
]);
|
||||
|
||||
if ($bb_cfg['topic_notify_enabled']) {
|
||||
$notify = !empty($this->request['notify']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue