[TWIG] Remove kludge event TwigPopulateVars

This commit is contained in:
2021-09-18 07:27:17 +01:00
parent fda998e335
commit 67d62cf37b
15 changed files with 112 additions and 147 deletions

View File

@@ -53,7 +53,7 @@ class Posting extends Component
* @throws RedirectException
* @throws ServerException
*/
public function onStartTwigPopulateVars(array &$vars): bool
public function onAppendRightPostingBlock(array $vars, array &$res): bool
{
if (($user = Common::user()) === null) {
return Event::next;
@@ -106,7 +106,7 @@ class Posting extends Component
}
}
$vars['post_form'] = $form->createView();
$res = $form->createView();
return Event::next;
}