mirror of
https://github.com/YGGverse/bdoku.git
synced 2026-03-31 17:55:36 +00:00
use Filesystem::getData method
This commit is contained in:
parent
8a9ecf9c80
commit
3c6234bbba
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue