mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Made small var name and formatting tweaks
This commit is contained in:
parent
a5e49f642b
commit
b65abd25e0
@ -163,8 +163,8 @@ class PageController extends Controller
|
|||||||
$pageNav = $this->entityRepo->getPageNav($page->html);
|
$pageNav = $this->entityRepo->getPageNav($page->html);
|
||||||
|
|
||||||
// check if the comment's are enabled
|
// check if the comment's are enabled
|
||||||
$areCommentsEnabled = !setting('app-disable-comments');
|
$commentsEnabled = !setting('app-disable-comments');
|
||||||
if ($areCommentsEnabled) {
|
if ($commentsEnabled) {
|
||||||
$page->load(['comments.createdBy']);
|
$page->load(['comments.createdBy']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,9 +172,11 @@ class PageController extends Controller
|
|||||||
$this->setPageTitle($page->getShortName());
|
$this->setPageTitle($page->getShortName());
|
||||||
return view('pages/show', [
|
return view('pages/show', [
|
||||||
'page' => $page,'book' => $page->book,
|
'page' => $page,'book' => $page->book,
|
||||||
'current' => $page, 'sidebarTree' => $sidebarTree,
|
'current' => $page,
|
||||||
'commentsEnabled' => $areCommentsEnabled,
|
'sidebarTree' => $sidebarTree,
|
||||||
'pageNav' => $pageNav]);
|
'commentsEnabled' => $commentsEnabled,
|
||||||
|
'pageNav' => $pageNav
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user