mirror of
https://github.com/getgrav/grav.git
synced 2026-07-10 16:13:48 +02:00
Added onPageProcessed for dynamic addPage() calls
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# v1.3.9
|
||||
## xx/xx/2017
|
||||
|
||||
1. [](#bugfix)
|
||||
* Dynamically added pages via `Pages::addPage()` were not firing `onPageProcessed()` event causing forms not to be processed
|
||||
1. [](#improved)
|
||||
* Added `Medium::copy()` method to create a copy of a medium object
|
||||
|
||||
|
||||
@@ -265,6 +265,8 @@ class Pages
|
||||
$this->children[$page->parent()->path()][$page->path()] = ['slug' => $page->slug()];
|
||||
}
|
||||
$this->routes[$route] = $page->path();
|
||||
|
||||
$this->grav->fireEvent('onPageProcessed', new Event(['page' => $page]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user