Fix naming for the new template variable

This commit is contained in:
Fedor A. Fetisov 2016-12-26 18:19:02 +03:00
parent ca169c5bc7
commit 7aed881f08

View File

@ -690,14 +690,13 @@ function prepare_menu($operator, $has_right = true)
$result = array(); $result = array();
$result['operator'] = get_operator_name($operator); $result['operator'] = get_operator_name($operator);
$result['is_online'] = is_operator_online($operator['operatorid']); $result['isOnline'] = is_operator_online($operator['operatorid']);
if ($has_right) { if ($has_right) {
$result['showban'] = Settings::get('enableban') == "1"; $result['showban'] = Settings::get('enableban') == "1";
$result['showstat'] = Settings::get('enablestatistics') == "1"; $result['showstat'] = Settings::get('enablestatistics') == "1";
$result['showadmin'] = is_capable(CAN_ADMINISTRATE, $operator); $result['showadmin'] = is_capable(CAN_ADMINISTRATE, $operator);
$result['currentopid'] = $operator['operatorid']; $result['currentopid'] = $operator['operatorid'];
} }
return $result; return $result;
} }