Changeset 12064

Show
Ignore:
Timestamp:
05/02/11 17:03:13 (2 years ago)
Author:
mbrevda
Message:

re #5117 - reload manager after restoring configs - the right way this time!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/backup/functions.inc.php

    r12063 r12064  
    128128 
    129129function backup_restore_tar($dir="", $file="",$filetype="", $display="") { 
    130   global $asterisk_conf,$amp_conf
     130  global $asterisk_conf, $amp_conf, $astman
    131131  $tar='/bin/tar'; 
    132132  $error_cause = array(); 
     
    176176      exec("/bin/rm -rf /tmp/ampbackups.$fileholder",$out_arr,$ret); 
    177177      backup_errors($error_cause, $ret, _('failed to remove exploded backup sets from tmp')); 
    178       exec('asterisk -rx "module reload manager"'); 
     178      $astman->Command('module reload manager'); 
    179179      if(!count($error_cause)){$message=_("Restored All Files in Backup Set");} 
    180180       
     
    226226      exec("/bin/rm -rf /tmp/ampbackups.$fileholder 2>&1",$out_arr,$ret); 
    227227      backup_errors($error_cause, $ret, _('failed to remove exploded backup sets from tmp')); 
    228       exec('asterisk -rx "module reload manager"'); 
     228      $astman->Command('module reload manager'); 
    229229      if(!count($error_cause)){$message=_("Restored System Configuration");} 
    230230    break;