mirror of
https://github.com/openvk/openvk
synced 2025-04-19 14:43:01 +03:00
fix(away.php): syntax
This commit is contained in:
parent
2e8cb81970
commit
267918252c
2 changed files with 2 additions and 3 deletions
|
@ -62,10 +62,11 @@ class BannedLinks
|
|||
public function genEntries($links, $uri): \Traversable
|
||||
{
|
||||
foreach ($links as $link) {
|
||||
if (preg_match($link->getRegexpRule(), $uri)) {
|
||||
if (preg_match($link->getRegexpRule(), $uri))
|
||||
yield $link->getId();
|
||||
else if ($this->isDomainBanned($link->getDomain()))
|
||||
yield $link->getId();
|
||||
}
|
||||
}
|
||||
|
||||
public function check(string $url): ?array
|
||||
|
|
|
@ -15,8 +15,6 @@ final class AwayPresenter extends OpenVKPresenter
|
|||
if (OPENVK_ROOT_CONF["openvk"]["preferences"]["susLinks"]["warnings"])
|
||||
if (sizeof($checkBanEntries) > 0)
|
||||
$this->pass("openvk!Away->view", $checkBanEntries[0]);
|
||||
}
|
||||
}
|
||||
|
||||
header("HTTP/1.0 302 Found");
|
||||
header("X-Robots-Tag: noindex, nofollow, noarchive");
|
||||
|
|
Loading…
Reference in a new issue