Rename property for onOutputGenerated and onOutputRendered events

This commit is contained in:
Matias Griese
2021-05-12 14:52:41 +03:00
parent ec018f40aa
commit 879de1d95e
2 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
1. [](#improved)
* Allow optional start date in page collections [#3350](https://github.com/getgrav/grav/pull/3350)
* Added page and html properties to `onOutputGenerated` and `onOutputRendered` events
* Added `page` and `output` properties to `onOutputGenerated` and `onOutputRendered` events
1. [](#bugfix)
* Fixed twig deprecated TwigFilter messages [#3348](https://github.com/getgrav/grav/issues/3348)
* Fixed fatal error with some markdown links [getgrav/grav-premium-issues#95](https://github.com/getgrav/grav-premium-issues/issues/95)

View File

@@ -51,7 +51,7 @@ class RenderProcessor extends ProcessorBase
ob_start();
$event = new Event(['page' => $page, 'html' => &$container->output]);
$event = new Event(['page' => $page, 'output' => &$container->output]);
$container->fireEvent('onOutputGenerated', $event);
echo $container->output;
@@ -61,7 +61,7 @@ class RenderProcessor extends ProcessorBase
// remove any output
$container->output = '';
$event = new Event(['page' => $page, 'html' => $html]);
$event = new Event(['page' => $page, 'output' => $html]);
$this->container->fireEvent('onOutputRendered', $event);
$this->stopTimer();