Skip to content

Commit

Permalink
Fix stray quote in ListOfPages form markup
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Feb 2, 2024
1 parent ca7b326 commit b9be44a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions application/src/Site/BlockLayout/ListOfPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ public function form(PhpRenderer $view, SiteRepresentation $site,
}
$pageList->setValue(json_encode($pageTree));

$html = '<div class="block-pagelist-tree"';
$html .= '" data-jstree-data="' . $escape($pageList->getValue());
$html .= '"></div>';
$html .= '<button type="button" class="site-page-add">';
$html .= $view->translate('Add pages') . '</button>';
$html = '<div class="block-pagelist-tree" data-jstree-data="' . $escape($pageList->getValue()) . '"></div>';
$html .= '<button type="button" class="site-page-add">' . $view->translate('Add pages') . '</button>';
$html .= '<div class="inputs">' . $view->formRow($pageList) . '</div>';

return $html;
Expand Down

0 comments on commit b9be44a

Please sign in to comment.