From cd0da5b6a3d67b11e4a88056b490b43e46424efe Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Thu, 3 Jun 2021 08:25:57 +0200 Subject: [PATCH] Update Sccp_manager.class.php Reset settings page tab order --- Sccp_manager.class.php | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index 52a00a6..870dfe4 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -270,36 +270,37 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { $action = !empty($request['action']) ? $request['action'] : ''; $this->pagedata = array( - "sccpinfo" => array( - "name" => _("SCCP info"), - "page" => 'views/server.info.php' - ), "general" => array( "name" => _("General SCCP Settings"), "page" => 'views/server.setting.php' - ), + ), "sccpdevice" => array( "name" => _("SCCP Device"), "page" => 'views/server.device.php' - ), + ), "sccpurl" => array( "name" => _("SCCP Device URL"), "page" => 'views/server.url.php' - ) + ), + "sccpntp" => array( + "name" => _("SCCP Time"), + "page" => 'views/server.datetime.php' + ), + "sccpcodec" => array( + "name" => _("SCCP Codec"), + "page" => 'views/server.codec.php' + ), + "sccpadv" => array( + "name" => _("Advanced SCCP Settings"), + "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')) { - $this->pagedata['sccpntp'] = array( - "name" => _("SCCP Time"), - "page" => 'views/server.datetime.php' - ); - $this->pagedata['sccpcodec'] = array( - "name" => _("SCCP Codec"), - "page" => 'views/server.codec.php' - ); - $this->pagedata['sccpadv'] = array( - "name" => _("Advanced SCCP Settings"), - "page" => 'views/server.advanced.php' - ); + if (isset($this->sccpvalues['displayconfig']['data']) && ($this->sccpvalues['displayconfig']['data'] == 'sccpsimple')) { + unset($this->pagedata['sccpntp'], $this->pagedata['sccpcodec'], $this->pagedata['sccpadv'] ); } $this->processPageData(); return $this->pagedata;