1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Fixed templates paths

This commit is contained in:
Eldad Fux 2020-08-11 17:28:24 +03:00
parent d6ad0779b3
commit 8eb74fc5c1

View file

@ -431,7 +431,7 @@ App::get('/robots.txt')
->label('scope', 'public')
->label('docs', false)
->action(function ($response) {
$template = new View(__DIR__.'/views/general/robots.phtml');
$template = new View(__DIR__.'/../views/general/robots.phtml');
$response->text($template->render(false));
}, ['response']);
@ -440,7 +440,7 @@ App::get('/humans.txt')
->label('scope', 'public')
->label('docs', false)
->action(function ($response) {
$template = new View(__DIR__.'/views/general/humans.phtml');
$template = new View(__DIR__.'/../views/general/humans.phtml');
$response->text($template->render(false));
}, ['response']);