use Filesystem::getData method

This commit is contained in:
ghost 2024-02-03 11:16:11 +02:00
parent 8a9ecf9c80
commit 3c6234bbba

View File

@ -128,7 +128,7 @@ foreach ($filesystem->getList() as $path)
if ($uri = $filesystem->getPageUriByPath($path))
{
if ($data = file_get_contents($path))
if ($data = $filesystem->getData($path))
{
$gemini = $reader->toGemini(
$data
@ -406,7 +406,7 @@ $server->setHandler(
// Convert
$gemini = $reader->toGemini(
file_get_contents(
$filesystem->getData(
$path
)
);
@ -516,7 +516,7 @@ $server->setHandler(
{
$h1[] = $reader->getH1(
$reader->toGemini(
file_get_contents(
$filesystem->getData(
$file
)
)
@ -528,7 +528,7 @@ $server->setHandler(
{
$h1[] = $reader->getH1(
$reader->toGemini(
file_get_contents(
$filesystem->getData(
$file
)
)