Changeset 12837
- Timestamp:
- 10/19/11 13:02:04 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/utility.functions.php
r12726 r12837 702 702 */ 703 703 function fpbx_which($app) { 704 global $amp_conf, $freepbx_conf; 705 704 // don't know if we will always have an open class and not even sure if 705 // $amp_conf will be set so to be safe deal with it all here. 706 // 707 $freepbx_conf =& freepbx_conf::create(); 708 $which = $freepbx_conf->get_conf_setting('WHICH_' . $app); 709 706 710 //if we have the location cached return it 707 if ( isset($amp_conf['WHICH_' . $app]) && $amp_conf['WHICH_' . $app]) {708 return $ amp_conf['WHICH_' . $app];711 if ($which) { 712 return $which; 709 713 710 714 //otherwise, search for it … … 731 735 'value' => $path[0], 732 736 'defaultval' => $path[0], 733 'readonly' => 0,737 'readonly' => 1, 734 738 'hidden' => 0, 735 739 'level' => 2,
