|
|
@ -37,7 +37,13 @@ class Tab |
|
|
|
foreach ($this->container->browser->database->getSession() as $session) |
|
|
|
foreach ($this->container->browser->database->getSession() as $session) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->appendPage( |
|
|
|
$this->appendPage( |
|
|
|
$session->request |
|
|
|
$session->request, |
|
|
|
|
|
|
|
boolval( // open |
|
|
|
|
|
|
|
parse_url( |
|
|
|
|
|
|
|
$session->request, |
|
|
|
|
|
|
|
PHP_URL_SCHEME |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -105,6 +111,7 @@ class Tab |
|
|
|
|
|
|
|
|
|
|
|
public function appendPage( |
|
|
|
public function appendPage( |
|
|
|
?string $request = null, |
|
|
|
?string $request = null, |
|
|
|
|
|
|
|
bool $open = true, |
|
|
|
bool $focus = true |
|
|
|
bool $focus = true |
|
|
|
): void |
|
|
|
): void |
|
|
|
{ |
|
|
|
{ |
|
|
@ -124,13 +131,20 @@ class Tab |
|
|
|
$this->_reorderable |
|
|
|
$this->_reorderable |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if ($request) |
|
|
|
if ($open) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$page->open( |
|
|
|
$page->open( |
|
|
|
$request |
|
|
|
$request |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$page->init( |
|
|
|
|
|
|
|
$request |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($focus) |
|
|
|
if ($focus) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Focus on appended tab |
|
|
|
// Focus on appended tab |
|
|
|