mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-03 22:55:55 +03:00
fix(OLX): deprecation notice (#3915)
This commit is contained in:
parent
4973aaadf6
commit
bd58266b80
1 changed files with 7 additions and 1 deletions
|
@ -56,7 +56,13 @@ EOF;
|
||||||
|
|
||||||
public function getName()
|
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) {
|
$query = array_reduce($paths, function ($q, $p) {
|
||||||
if (preg_match('/^q-(.+)$/i', $p, $matches)) {
|
if (preg_match('/^q-(.+)$/i', $p, $matches)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue