diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php index 57cacfcc5..7ec122958 100644 --- a/e107_plugins/chatbox_menu/chatbox_menu.php +++ b/e107_plugins/chatbox_menu/chatbox_menu.php @@ -8,14 +8,6 @@ * */ -/** - * e107 Chatbox plugin - * - * @package e107_plugins - * @subpackage chatbox - */ - - if(isset($_POST['chatbox_ajax'])) { define('e_MINIMAL',true); @@ -24,19 +16,17 @@ if(isset($_POST['chatbox_ajax'])) global $e107cache, $e_event, $e107; - $tp = e107::getParser(); $pref = e107::getPref(); - if (!e107::isInstalled('chatbox_menu')) { return ''; } -e107::lan('chatbox_menu',e_LANGUAGE); +e107::lan('chatbox_menu', e_LANGUAGE); // FIXME - start - LAN is not loaded /* @@ -191,7 +181,8 @@ if((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] != '') { $sql->insert("chatbox", "0, '$nick', '$cmessage', '".time()."', '0' , '$ip' "); $edata_cb = array("cmessage" => $cmessage, "ip" => $ip); - $e_event -> trigger("cboxpost", $edata_cb); + $e_event -> trigger("cboxpost", $edata_cb); // deprecated + e107::getEvent('user_chatbox_post_created', $edata_cb); $e107cache->clear("nq_chatbox"); } } @@ -387,4 +378,4 @@ else //$ns -> tablerender($caption, $text, 'chatbox'); -?> \ No newline at end of file +?>