Update Sccp_manager.class.php
Remove unnecessary tests
This commit is contained in:
parent
c1f35ace41
commit
8341cba1ca
|
@ -323,8 +323,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
$request = $_REQUEST;
|
||||
$action = !empty($request['action']) ? $request['action'] : '';
|
||||
$inputform = !empty($request['tech_hardware']) ? $request['tech_hardware'] : '';
|
||||
|
||||
if (empty($this->pagedata)) {
|
||||
switch ($inputform) {
|
||||
case 'dialplan':
|
||||
$this->pagedata = array(
|
||||
|
@ -353,26 +351,15 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
}
|
||||
break;
|
||||
}
|
||||
$this->processPageData();
|
||||
}
|
||||
return $this->pagedata;
|
||||
}
|
||||
|
||||
public function processPageData() {
|
||||
foreach ($this->pagedata as &$page) {
|
||||
ob_start();
|
||||
include($page['page']);
|
||||
$page['content'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
}
|
||||
$this->processPageData();
|
||||
return $this->pagedata;
|
||||
}
|
||||
|
||||
public function phoneShowPage() {
|
||||
$request = $_REQUEST;
|
||||
$action = !empty($request['action']) ? $request['action'] : '';
|
||||
$inputform = !empty($request['tech_hardware']) ? $request['tech_hardware'] : '';
|
||||
|
||||
if (empty($this->pagedata)) {
|
||||
switch ($inputform) {
|
||||
case "cisco":
|
||||
$this->pagedata = array(
|
||||
|
@ -435,6 +422,11 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
}
|
||||
break;
|
||||
}
|
||||
$this->processPageData();
|
||||
return $this->pagedata;
|
||||
}
|
||||
|
||||
public function processPageData() {
|
||||
foreach ($this->pagedata as &$page) {
|
||||
ob_start();
|
||||
include($page['page']);
|
||||
|
@ -443,9 +435,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
}
|
||||
}
|
||||
|
||||
return $this->pagedata;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* * Save Hardware Device Information to Db + ???? Create / update XML Profile
|
||||
|
|
Loading…
Reference in a new issue