Browse Source

use Filesystem::getData method

main
ghost 11 months ago
parent
commit
3c6234bbba
  1. 8
      src/server.php

8
src/server.php

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

Loading…
Cancel
Save