mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use filesystem defined mime type constants
This commit is contained in:
parent
9a534caacc
commit
720f9ebbae
1 changed files with 3 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ use \Yggverse\Yoda\Entity\Browser\Container\Page\Content;
|
|||
use \Yggverse\Yoda\Entity\Browser\Container\Page\Response;
|
||||
|
||||
use \Yggverse\Yoda\Model\Connection;
|
||||
use \Yggverse\Yoda\Model\Filesystem;
|
||||
|
||||
class Page
|
||||
{
|
||||
|
|
@ -201,7 +202,7 @@ class Page
|
|||
// Update content
|
||||
switch ($connection->getMime())
|
||||
{
|
||||
case 'text/gemini':
|
||||
case Filesystem::MIME_TEXT_GEMINI:
|
||||
|
||||
$title = null;
|
||||
|
||||
|
|
@ -219,7 +220,7 @@ class Page
|
|||
|
||||
break;
|
||||
|
||||
case 'text/plain':
|
||||
case Filesystem::MIME_TEXT_PLAIN:
|
||||
|
||||
$this->content->setPlain(
|
||||
(string) $connection->getData()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue