Updates and cleanup
This commit is contained in:
parent
99a9ed919e
commit
e4dc428379
11 changed files with 340 additions and 395 deletions
|
@ -23,14 +23,14 @@ class plugins_chat{
|
|||
$cont=str_replace('[users]',$data['usercount'],$cont);
|
||||
}
|
||||
|
||||
function cusers_head($tpl){
|
||||
function cusers_head(& $tpl){
|
||||
global $db, $config, $session, $log;
|
||||
$data=chat_online();
|
||||
if ($data["chat_offline"]===true){
|
||||
$tpl->assign('users',"offline");
|
||||
$tpl->assign('cusers',"offline");
|
||||
return;
|
||||
}else{
|
||||
$tpl->assign('users',$data['usercount']);
|
||||
//$tpl->assign('cusers',$data['usercount']);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue