Match to previous commit

Add missing comments
This commit is contained in:
steve-lad 2021-01-28 10:00:10 +01:00
parent 80fbf7b1b4
commit d5c8cc9ab2
3 changed files with 5 additions and 10 deletions

View file

@ -22,7 +22,6 @@ if (empty($spage->class_error)) {
$display_page = $spage->infoServerShowPage(); $display_page = $spage->infoServerShowPage();
$display_info = _("SCCP Server Configuration"); $display_info = _("SCCP Server Configuration");
} }
// standardise code to reduce base
include('page.html.php'); include('page.html.php');
?> ?>
<!-- End Modal alerts-->

View file

@ -22,7 +22,6 @@ if (empty($spage->class_error)) {
$display_page = $spage->infoServerShowPage(); $display_page = $spage->infoServerShowPage();
$display_info = _("SCCP Server Configuration"); $display_info = _("SCCP Server Configuration");
} }
// standardise code to reduce base
include('page.html.php'); include('page.html.php');
?> ?>
<!-- End Modal alerts-->

View file

@ -10,12 +10,9 @@ if (!defined('FREEPBX_IS_AUTH')) {
// AGPL v3 Licened // AGPL v3 Licened
// //
$spage = FreePBX::create()->Sccp_manager; // Initialise page before to avoid double calls and improve performance
$display_page = FreePBX::create()->Sccp_manager->myShowPage();
$display_page = $spage->myShowPage();
$display_info = _("SCCP Server Settings"); $display_info = _("SCCP Server Settings");
// standardise code to reduce base
include('page.html.php'); include('page.html.php');
?> ?>
<!-- End Modal alerts-->