Skip to content

Commit

Permalink
🐛 fix: import class error
Browse files Browse the repository at this point in the history
  • Loading branch information
popiazaza committed Jul 8, 2023
1 parent f125a3b commit d76c335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion th_chat/new.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$uid = $_G['uid'];
$id = intval($_POST['lastid']);
$is_mod = in_array($_G['adminid'], array(1, 2, 3));
require './class/class_THChatMessage.php';
require_once libfile('class/THChatMessage', 'plugin/th_chat');
$msg_func = new THChatMessage();
$room = intval($_POST['room']);
if ($room) {
Expand Down
2 changes: 1 addition & 1 deletion th_chat/newinit.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$config = $_G['cache']['plugin']['th_chat'];
$uid = $_G['uid'];
$is_mod = in_array($_G['adminid'], array(1, 2, 3));
require './class/class_THChatMessage.php';
require_once libfile('class/THChatMessage', 'plugin/th_chat');
$msg_func = new THChatMessage();
$room = intval($_POST['room']);
if ($room && $uid) {
Expand Down
2 changes: 1 addition & 1 deletion th_chat/post.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$uid = $_G['uid'];
$gid = $_G['groupid'];
$is_mod = in_array($_G['adminid'], array(1, 2, 3));
require './class/class_THChatMessage.php';
require_once libfile('class/THChatMessage', 'plugin/th_chat');
$msg_func = new THChatMessage();
function error_response($error, $script = '')
{
Expand Down

0 comments on commit d76c335

Please sign in to comment.