Changeset 8273
- Timestamp:
- 09/04/09 17:44:43 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.6/amp_conf/htdocs/admin/functions.inc.php
r8117 r8273 1496 1496 1497 1497 function do_reload() { 1498 global $amp_conf, $asterisk_conf, $db, $astman; 1498 global $amp_conf, $asterisk_conf, $db, $astman, $version; 1499 1500 if (empty($version)) { 1501 $engine_info = engine_getinfo(); 1502 $version = $engine_info['version']; 1503 } 1499 1504 1500 1505 $notify =& notifications::create($db); … … 1544 1549 1545 1550 //reload asterisk 1546 $astman->send_request('Command', array('Command'=>'reload')); 1551 if (version_compare($version,'1.4','lt')) { 1552 $astman->send_request('Command', array('Command'=>'reload')); 1553 } else { 1554 $astman->send_request('Command', array('Command'=>'module reload')); 1555 } 1547 1556 1548 1557 $return['status'] = true; … … 3656 3665 function freepbx_debug($string, $option='a', $filename='/tmp/freepbx_debug.log') { 3657 3666 $fh = fopen($filename,$option); 3658 if (is_array($string) ) {3667 if (is_array($string) || is_object($string)) { 3659 3668 fwrite($fh,print_r($string,true)."\n"); 3660 3669 } else {
