Changeset 10842

Show
Ignore:
Timestamp:
01/08/11 14:04:18 (2 years ago)
Author:
p_lindheimer
Message:

only open astman connection for reload handler, others don't need it (I don't think)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/bootstrap/amp_conf/htdocs/admin/config.php

    r10789 r10842  
    4747if (isset($_REQUEST['handler'])) { 
    4848  $restrict_mods = true; 
    49   // TODO: some handlers (like reload) need astman, check on which ones so we can minimize the 
    50   //       the connection. (This maybe should just be if != 'reload' as the others I don't think 
    51   //       need the astmanager. 
    52   if ($_REQUEST['handler'] == 'file') { 
     49  // I think reload is the only handler that requires astman, so skip it for others 
     50  switch ($_REQUEST['handler']) { 
     51  case 'reload': 
     52    break; 
     53  default: 
    5354    $bootstrap_settings['skip_astman'] = true; 
    5455  }