Changeset 12064
- Timestamp:
- 05/02/11 17:03:13 (2 years ago)
- Files:
-
- modules/branches/2.9/backup/functions.inc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/backup/functions.inc.php
r12063 r12064 128 128 129 129 function backup_restore_tar($dir="", $file="",$filetype="", $display="") { 130 global $asterisk_conf, $amp_conf;130 global $asterisk_conf, $amp_conf, $astman; 131 131 $tar='/bin/tar'; 132 132 $error_cause = array(); … … 176 176 exec("/bin/rm -rf /tmp/ampbackups.$fileholder",$out_arr,$ret); 177 177 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'); 179 179 if(!count($error_cause)){$message=_("Restored All Files in Backup Set");} 180 180 … … 226 226 exec("/bin/rm -rf /tmp/ampbackups.$fileholder 2>&1",$out_arr,$ret); 227 227 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'); 229 229 if(!count($error_cause)){$message=_("Restored System Configuration");} 230 230 break;
