1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

fixed error from phpcs

This commit is contained in:
Sascha
2024-01-23 22:37:15 +01:00
committed by GitHub
parent 8c6b116472
commit 0fc02a2532
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class PageRepo
} else {
$defaultTemplate = $page->book->defaultTemplate;
}
if ($defaultTemplate && userCan('view', $defaultTemplate)) {
$page->forceFill([
'html' => $defaultTemplate->html,