private function routeUsingFriendlyURLs(Git_URL $url) { if (!$this->getPlugin()->areFriendlyUrlsActivated()) { return; } if (!$url->isFriendly()) { return; } $repository = $url->getRepository(); if (!$repository) { return; } $this->request->set('action', 'view'); $this->request->set('group_id', $repository->getProjectId()); $this->request->set('repo_id', $repository->getId()); $this->addUrlParametersToRequest($url); }
private function routeUsingFriendlyURLs(Git_URL $url) { if (!$this->getPlugin()->areFriendlyUrlsActivated()) { return; } if (!$url->isFriendly()) { return; } $repository = $url->getRepository(); if (!$repository) { return; } $this->request->set('action', 'view'); $this->request->set('group_id', $repository->getProjectId()); $this->request->set('repo_id', $repository->getId()); if ($url->getParameters()) { parse_str($url->getParameters(), $_GET); parse_str($url->getParameters(), $_REQUEST); $this->setNoHeaderIfNeeded(); } }