function hackedProjectWebDownloader::get_final_destination in Hacked! 7.2
Same name and namespace in other branches
- 6.2 includes/hacked_project.inc \hackedProjectWebDownloader::get_final_destination()
Returns the final destination of the unpacked project.
1 method overrides hackedProjectWebDownloader::get_final_destination()
- hackedProjectWebDevDownloader::get_final_destination in includes/
hackedProjectWebDevDownloader.inc - Returns the final destination of the unpacked project.
File
- includes/
hackedProjectWebDownloader.inc, line 59
Class
- hackedProjectWebDownloader
- Base class for downloading remote versions of projects.
Code
function get_final_destination() {
$dir = $this
->get_destination();
$name = $this->project->name;
$version = $this->project->existing_version;
$type = $this->project->project_type;
// More special handling for core:
if ($type != 'core') {
$module_dir = $dir . "/{$name}";
}
else {
$module_dir = $dir . '/' . $name . '-' . $version;
}
return $module_dir;
}