mirror of
https://github.com/getgrav/grav.git
synced 2026-02-28 09:31:32 +01:00
Rename property for onOutputGenerated and onOutputRendered events
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user