





















@ -117,13 +117,13 @@ class Controller {
|
||||
|
||||
if($fromSite) {
|
||||
// get the next active site by our current ordering
|
||||
$site = $this->site->getPreviousSite($fromSite['url']);
|
||||
$toUrl = $this->site->getNextSite($fromSite['url'])['url'] ?? '/';
|
||||
} else {
|
||||
// get a random active site and redirect to it!
|
||||
$site = $this->site->randomActive();
|
||||
$toUrl = $this->site->randomActive()['url'];
|
||||
}
|
||||
|
||||
return $this->response->withHeader('Location', $site['url'])->withStatus(302);
|
||||
return $this->response->withHeader('Location', $toUrl)->withStatus(302);
|
||||
}
|
||||
|
||||
public function random(ServerRequestInterface $request, array $args): ResponseInterface {
|
||||
|
||||
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。