/** * * @param User $user * @param Artefact $artefact * @return bool */ function send($user, $artefact) { $root = $this->get_url(); rtrim($root, '/'); $url = $artefact->get_url(); $url = $root . '/artefact/connect/upload.php?url=' . urlencode($url) . '&extract=true'; Header::location($url); }
/** * * @param User $user * @param Artefact $artefact * @return bool */ function send($user, $artefact) { if ($artefact->get_url()) { Header::location($artefact->get_url()); } }