mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-16 21:58:21 +01:00
fix(OLX): deprecation notice (#3915)
This commit is contained in:
parent
4973aaadf6
commit
bd58266b80
@ -56,7 +56,13 @@ EOF;
|
||||
|
||||
public function getName()
|
||||
{
|
||||
$paths = explode('/', parse_url($this->getInput('url'), PHP_URL_PATH));
|
||||
$url = $this->getInput('url');
|
||||
if (!$url) {
|
||||
return parent::getName();
|
||||
}
|
||||
|
||||
$parsedUrl = Url::fromString($url);
|
||||
$paths = explode('/', $parsedUrl->getPath());
|
||||
|
||||
$query = array_reduce($paths, function ($q, $p) {
|
||||
if (preg_match('/^q-(.+)$/i', $p, $matches)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user