1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-13 02:56:28 +02:00

Fixes #4162 - Handle chatbox nick names with a "." in them.

This commit is contained in:
Cameron
2020-05-11 12:12:24 -07:00
parent 2cf97da75c
commit 968701c842

View File

@ -61,7 +61,7 @@ class chatbox_menu_shortcodes extends e_shortcode
*/ */
protected function getUserNameFromNick() protected function getUserNameFromNick()
{ {
$temp = explode('.', $this->var['cb_nick']); $temp = explode('.', $this->var['cb_nick'], 2);
return $temp[1]; return $temp[1];
} }
@ -71,7 +71,7 @@ class chatbox_menu_shortcodes extends e_shortcode
* *
* @param $parm * @param $parm
* *
* @return <img> tag of avatar * @return string <img> tag of avatar
*/ */
public function sc_cb_avatar($parm = null) public function sc_cb_avatar($parm = null)
{ {