mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +03:00
Remove duplicate init for isOnline
This commit is contained in:
parent
7aed881f08
commit
5424424eaf
@ -47,14 +47,12 @@ class HomeController extends AbstractController
|
|||||||
public function dashboardAction(Request $request)
|
public function dashboardAction(Request $request)
|
||||||
{
|
{
|
||||||
$operator = $this->getOperator();
|
$operator = $this->getOperator();
|
||||||
$is_online = is_operator_online($operator['operatorid']);
|
|
||||||
|
|
||||||
$page = array(
|
$page = array(
|
||||||
'version' => MIBEW_VERSION,
|
'version' => MIBEW_VERSION,
|
||||||
'localeLinks' => get_locale_links(),
|
'localeLinks' => get_locale_links(),
|
||||||
'needUpdate' => version_compare(Settings::get('dbversion'), MIBEW_VERSION, '<'),
|
'needUpdate' => version_compare(Settings::get('dbversion'), MIBEW_VERSION, '<'),
|
||||||
'profilePage' => $this->generateUrl('operator_edit', array('operator_id' => $operator['operatorid'])),
|
'profilePage' => $this->generateUrl('operator_edit', array('operator_id' => $operator['operatorid'])),
|
||||||
'isOnline' => $is_online,
|
|
||||||
'warnOffline' => true,
|
'warnOffline' => true,
|
||||||
'title' => getlocal('Home'),
|
'title' => getlocal('Home'),
|
||||||
'menuid' => 'main',
|
'menuid' => 'main',
|
||||||
|
Loading…
Reference in New Issue
Block a user