mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update post_mod_comment.php
This commit is contained in:
parent
1b0e148e44
commit
aea496d796
@ -7,7 +7,7 @@ global $lang, $userdata;
|
|||||||
$post_id = (int) $this->request['post_id'];
|
$post_id = (int) $this->request['post_id'];
|
||||||
$mc_type = (int) $this->request['mc_type'];
|
$mc_type = (int) $this->request['mc_type'];
|
||||||
$mc_text = (string) $this->request['mc_text'];
|
$mc_text = (string) $this->request['mc_text'];
|
||||||
if (!$mc_text = prepare_message($mc_text)) $this->ajax_die($lang['EMPTY_MESSAGE']);
|
if ($mc_type != 0 && !$mc_text = prepare_message($mc_text)) $this->ajax_die($lang['EMPTY_MESSAGE']);
|
||||||
|
|
||||||
$post = DB()->fetch_row("
|
$post = DB()->fetch_row("
|
||||||
SELECT
|
SELECT
|
||||||
@ -57,4 +57,4 @@ $this->response['mc_type'] = $mc_type;
|
|||||||
$this->response['post_id'] = $post_id;
|
$this->response['post_id'] = $post_id;
|
||||||
$this->response['mc_title'] = sprintf($lang['MC_COMMENT'][$mc_type]['title'], profile_url($userdata));
|
$this->response['mc_title'] = sprintf($lang['MC_COMMENT'][$mc_type]['title'], profile_url($userdata));
|
||||||
$this->response['mc_text'] = bbcode2html($mc_text);
|
$this->response['mc_text'] = bbcode2html($mc_text);
|
||||||
$this->response['mc_class'] = $mc_class;
|
$this->response['mc_class'] = $mc_class;
|
||||||
|
Loading…
Reference in New Issue
Block a user