Update Sccp_manager.class.php
Reset settings page tab order
This commit is contained in:
parent
8c7c7d6fef
commit
cd0da5b6a3
|
@ -270,10 +270,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
$action = !empty($request['action']) ? $request['action'] : '';
|
$action = !empty($request['action']) ? $request['action'] : '';
|
||||||
|
|
||||||
$this->pagedata = array(
|
$this->pagedata = array(
|
||||||
"sccpinfo" => array(
|
|
||||||
"name" => _("SCCP info"),
|
|
||||||
"page" => 'views/server.info.php'
|
|
||||||
),
|
|
||||||
"general" => array(
|
"general" => array(
|
||||||
"name" => _("General SCCP Settings"),
|
"name" => _("General SCCP Settings"),
|
||||||
"page" => 'views/server.setting.php'
|
"page" => 'views/server.setting.php'
|
||||||
|
@ -285,21 +281,26 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
"sccpurl" => array(
|
"sccpurl" => array(
|
||||||
"name" => _("SCCP Device URL"),
|
"name" => _("SCCP Device URL"),
|
||||||
"page" => 'views/server.url.php'
|
"page" => 'views/server.url.php'
|
||||||
)
|
),
|
||||||
);
|
"sccpntp" => array(
|
||||||
if (isset($this->sccpvalues['displayconfig']['data']) && ($this->sccpvalues['displayconfig']['data'] != 'sccpsimple')) {
|
|
||||||
$this->pagedata['sccpntp'] = array(
|
|
||||||
"name" => _("SCCP Time"),
|
"name" => _("SCCP Time"),
|
||||||
"page" => 'views/server.datetime.php'
|
"page" => 'views/server.datetime.php'
|
||||||
);
|
),
|
||||||
$this->pagedata['sccpcodec'] = array(
|
"sccpcodec" => array(
|
||||||
"name" => _("SCCP Codec"),
|
"name" => _("SCCP Codec"),
|
||||||
"page" => 'views/server.codec.php'
|
"page" => 'views/server.codec.php'
|
||||||
);
|
),
|
||||||
$this->pagedata['sccpadv'] = array(
|
"sccpadv" => array(
|
||||||
"name" => _("Advanced SCCP Settings"),
|
"name" => _("Advanced SCCP Settings"),
|
||||||
"page" => 'views/server.advanced.php'
|
"page" => 'views/server.advanced.php'
|
||||||
|
),
|
||||||
|
"sccpinfo" => array(
|
||||||
|
"name" => _("SCCP info"),
|
||||||
|
"page" => 'views/server.info.php'
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
if (isset($this->sccpvalues['displayconfig']['data']) && ($this->sccpvalues['displayconfig']['data'] == 'sccpsimple')) {
|
||||||
|
unset($this->pagedata['sccpntp'], $this->pagedata['sccpcodec'], $this->pagedata['sccpadv'] );
|
||||||
}
|
}
|
||||||
$this->processPageData();
|
$this->processPageData();
|
||||||
return $this->pagedata;
|
return $this->pagedata;
|
||||||
|
|
Loading…
Reference in a new issue