mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
remove deprecated construction
This commit is contained in:
parent
f26db76f7b
commit
a9eba41cdc
1 changed files with 9 additions and 20 deletions
|
|
@ -36,16 +36,9 @@ class Gemtext extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Cont
|
||||||
string $href
|
string $href
|
||||||
): bool
|
): bool
|
||||||
{
|
{
|
||||||
// Format URL
|
|
||||||
$url = $this->_url(
|
|
||||||
$href
|
|
||||||
);
|
|
||||||
|
|
||||||
// Update request entry
|
// Update request entry
|
||||||
$this->content->page->navbar->request->setValue(
|
$this->content->page->navbar->request->setValue(
|
||||||
$this->_url(
|
$href
|
||||||
$href
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update page
|
// Update page
|
||||||
|
|
@ -54,7 +47,7 @@ class Gemtext extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Cont
|
||||||
// Prevent propagation for supported protocols
|
// Prevent propagation for supported protocols
|
||||||
return in_array(
|
return in_array(
|
||||||
parse_url(
|
parse_url(
|
||||||
$url,
|
$href,
|
||||||
PHP_URL_SCHEME
|
PHP_URL_SCHEME
|
||||||
),
|
),
|
||||||
[
|
[
|
||||||
|
|
@ -90,18 +83,14 @@ class Gemtext extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Cont
|
||||||
// Parse gemtext href
|
// Parse gemtext href
|
||||||
if ($href = LinkParser::getAddress($line))
|
if ($href = LinkParser::getAddress($line))
|
||||||
{
|
{
|
||||||
// Format URL
|
// Open
|
||||||
if ($url = $this->_url($href))
|
$this->content->page->container->tab->append(
|
||||||
{
|
$href,
|
||||||
// Open
|
true,
|
||||||
$this->content->page->container->tab->append(
|
false
|
||||||
$url,
|
);
|
||||||
true,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue