/** * Revert the CodeIgniter Patch * * @access private * @return bool Whether or not CodeIgniter was unpatched * @author Aziz Light **/ private function unpatch_codeigniter() { $result = FALSE; foreach ($this->files_to_patch as $file) { $file_location = FolderScanner::system_path() . 'core' . DIRECTORY_SEPARATOR . $file . '.php'; $result = $this->unpatch_codeigniter_file($file_location); } return $result; }
/** * Revert the CodeIgniter Patch * @return void * @author Aziz Light **/ private function unpatch_codeigniter() { foreach ($this->files_to_patch as $file) { $file_location = FolderScanner::system_path() . 'core' . DIRECTORY_SEPARATOR . $file . '.php'; copy(BASE_PATH . DIRECTORY_SEPARATOR . 'temp' . DIRECTORY_SEPARATOR . $file . '.php', $file_location); unlink(BASE_PATH . DIRECTORY_SEPARATOR . 'temp' . DIRECTORY_SEPARATOR . $file . '.php'); } return; }