mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Fix naming for the new template variable
This commit is contained in:
parent
ca169c5bc7
commit
7aed881f08
@ -690,14 +690,13 @@ function prepare_menu($operator, $has_right = true)
|
||||
$result = array();
|
||||
|
||||
$result['operator'] = get_operator_name($operator);
|
||||
$result['is_online'] = is_operator_online($operator['operatorid']);
|
||||
$result['isOnline'] = is_operator_online($operator['operatorid']);
|
||||
if ($has_right) {
|
||||
$result['showban'] = Settings::get('enableban') == "1";
|
||||
$result['showstat'] = Settings::get('enablestatistics') == "1";
|
||||
$result['showadmin'] = is_capable(CAN_ADMINISTRATE, $operator);
|
||||
$result['currentopid'] = $operator['operatorid'];
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user