Remove debug code
This commit is contained in:
parent
427d970070
commit
b7654a8c75
|
@ -207,12 +207,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
$this->sccpvalues['tzoffset'] = array('keyword' => 'tzoffset', 'seq'=>98, 'type' => 2, 'data' => $value);
|
$this->sccpvalues['tzoffset'] = array('keyword' => 'tzoffset', 'seq'=>98, 'type' => 2, 'data' => $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function showPage() {
|
|
||||||
dbug('showPage called', $_REQUEST);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Show form information - General
|
* Show form information - General
|
||||||
*/
|
*/
|
||||||
|
@ -311,8 +305,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function phoneShowPage() {
|
public function phoneShowPage() {
|
||||||
dbug($_REQUEST);
|
|
||||||
dbug(debug_backtrace(0));
|
|
||||||
$request = $_REQUEST;
|
$request = $_REQUEST;
|
||||||
$action = !empty($request['action']) ? $request['action'] : '';
|
$action = !empty($request['action']) ? $request['action'] : '';
|
||||||
$inputform = !empty($request['tech_hardware']) ? $request['tech_hardware'] : '';
|
$inputform = !empty($request['tech_hardware']) ? $request['tech_hardware'] : '';
|
||||||
|
@ -384,6 +376,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
|
|
||||||
public function processPageData() {
|
public function processPageData() {
|
||||||
foreach ($this->pagedata as &$page) {
|
foreach ($this->pagedata as &$page) {
|
||||||
|
// own version of load_view - simplifies passing variables
|
||||||
ob_start();
|
ob_start();
|
||||||
include($page['page']);
|
include($page['page']);
|
||||||
$page['content'] = ob_get_contents();
|
$page['content'] = ob_get_contents();
|
||||||
|
|
|
@ -14,12 +14,6 @@ if (!defined('FREEPBX_IS_AUTH')) {
|
||||||
// function is called. This is where you do any changes. The page.foo.php
|
// function is called. This is where you do any changes. The page.foo.php
|
||||||
// is only for DISPLAYING things. MVC is a cool idea, ya know?
|
// is only for DISPLAYING things. MVC is a cool idea, ya know?
|
||||||
//
|
//
|
||||||
dbug(debug_backtrace());
|
|
||||||
if (isset(\FreePBX::create()->Sccp_manager)) {
|
|
||||||
dbug('is set');
|
|
||||||
} else {
|
|
||||||
dbug('is not set');
|
|
||||||
}
|
|
||||||
$spage = FreePBX::create()->Sccp_manager;
|
$spage = FreePBX::create()->Sccp_manager;
|
||||||
if (empty($spage->class_error)) {
|
if (empty($spage->class_error)) {
|
||||||
$display_page = $spage->phoneShowPage();
|
$display_page = $spage->phoneShowPage();
|
||||||
|
|
|
@ -45,7 +45,6 @@ trait ajaxHelper {
|
||||||
$request = $_REQUEST;
|
$request = $_REQUEST;
|
||||||
$msg = array();
|
$msg = array();
|
||||||
$cmd_id = $request['command'];
|
$cmd_id = $request['command'];
|
||||||
dbug('ajax', $cmd_id);
|
|
||||||
switch ($cmd_id) {
|
switch ($cmd_id) {
|
||||||
case 'savesettings':
|
case 'savesettings':
|
||||||
// Consolidate this into a separate method to improve legibility
|
// Consolidate this into a separate method to improve legibility
|
||||||
|
|
Loading…
Reference in a new issue