Browse Source

make MIME type argument primary

PHP-GTK3
yggverse 4 months ago
parent
commit
1843d72ff5
  1. 6
      src/Entity/Browser/Container/Page.php
  2. 4
      src/Entity/Browser/Container/Page/Content.php

6
src/Entity/Browser/Container/Page.php

@ -13,6 +13,7 @@ use \Yggverse\Yoda\Entity\Browser\Container\Page\Content;
use \Yggverse\Yoda\Entity\Browser\Container\Page\Response; use \Yggverse\Yoda\Entity\Browser\Container\Page\Response;
use \Yggverse\Yoda\Model\Connection; use \Yggverse\Yoda\Model\Connection;
use \Yggverse\Yoda\Model\Filesystem;
class Page class Page
{ {
@ -202,8 +203,8 @@ class Page
// Update content // Update content
$this->content->set( $this->content->set(
$connection->getData(), $connection->getMime(),
$connection->getMime() $connection->getData()
); );
// Hide progressbar // Hide progressbar
@ -226,6 +227,7 @@ class Page
// Update content // Update content
$this->content->set( $this->content->set(
Filesystem::MIME_TEXT_PLAIN,
_('Response time reached') _('Response time reached')
); );

4
src/Entity/Browser/Container/Page/Content.php

@ -63,8 +63,8 @@ class Content
} }
public function set( public function set(
?string $data, ?string $mime,
?string $mime ?string $data
): void ): void
{ {
$this->_source = $data; $this->_source = $data;

Loading…
Cancel
Save