Added onPageProcessed for dynamic addPage() calls

This commit is contained in:
Andy Miller
2017-10-30 16:19:13 -06:00
parent f17954a5db
commit 1ca6181856
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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]));
}
/**