remove deprecated construction

This commit is contained in:
yggverse 2024-07-29 20:19:14 +03:00
parent f26db76f7b
commit a9eba41cdc

View file

@ -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;
}
} }
} */ } */
} }