if (!file_exists($tempdestination) || !is_dir($tempdestination)) {
$results = $backup->get_controller()->get_results();
$file = $results['backup_destination'];
- $file->extract_to_pathname(get_file_packer($file->get_mimetype()), $tempdestination);
+ $file->extract_to_pathname(get_file_packer('application/zip'), $tempdestination);
}
// Delete the backup file, we only want the directory
$results['backup_destination']->delete();
/**
* Removes an element from the form if it exists
- * @param string $elementName
+ * @param string $elementname
* @return bool
*/
- public function remove_element($elementName) {
+ public function remove_element($elementname) {
if ($this->_form->elementExists($elementname)) {
- return $this->_form->removeElement($elementName);
+ return $this->_form->removeElement($elementname);
} else {
return false;
}