Change version number in Sccp Info
Use module.xml to get version
This commit is contained in:
parent
c2fb5f4492
commit
a395120fac
|
@ -86,7 +86,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
/* Field Values for type seq */
|
||||
private $pagedata = null;
|
||||
private $sccp_driver_ver = '11.4'; // Ver fore SCCP.CLASS.PHP
|
||||
public $sccp_manager_ver = '14.1.0.0';
|
||||
public $sccp_branch = 'm'; // Ver fore SCCP.CLASS.PHP
|
||||
private $installedLangs = array();
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<module>
|
||||
<rawname>sccp_manager</rawname>
|
||||
<name>SCCP Manager</name>
|
||||
<version>14.3.0.15</version>
|
||||
<version>14.3.0.16</version>
|
||||
<type>setup</type>
|
||||
<category>SCCP Connectivity</category>
|
||||
<publisher>Steve Lad, Alex GP</publisher>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
$test_ami = 0;
|
||||
$test_any = 0;
|
||||
global $amp_conf;
|
||||
|
||||
$driver = $this->FreePBX->Core->getAllDriversInfo();
|
||||
$core = $this->aminterface->getSCCPVersion();
|
||||
|
@ -30,6 +31,7 @@ $compatible = $this->aminterface->get_compatible_sccp();
|
|||
$info = array();
|
||||
|
||||
//$info['srvinterface'] = $this->srvinterface->info();
|
||||
$moduleXml = simplexml_load_file("{$amp_conf['AMPWEBROOT']}/admin/modules/sccp_manager/module.xml");
|
||||
$info['extconfigs'] = $this->extconfigs->info();
|
||||
$info['dbinterface'] = $this->dbinterface->info();
|
||||
$info['aminterface'] = $this->aminterface->info();
|
||||
|
@ -203,7 +205,7 @@ if (!empty($this->class_error)) {
|
|||
<div class="fpbx-container container-fluid">
|
||||
<div class="row">
|
||||
<div class="container">
|
||||
<h2>Sccp Manager V.<?php print_r($this->sccp_manager_ver); ?> Info </h2>
|
||||
<h2>Sccp Manager v<?php print_r((string) $moduleXml->version); ?> Info </h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in a new issue