Minor improvements (#882)

* Minor improvements

* Updated

* Updated

* Updated

* Update privmsg.php

* Updated

* Update admin_attach_cp.php
This commit is contained in:
Roman Kelesidis 2023-09-04 01:01:01 +07:00 committed by GitHub
commit 4b453de64a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 699 additions and 735 deletions

View file

@ -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']);