Add a onPageFallBackUrl event when starting the fallbackUrl() method

Use case: allow to password-protect page media too via the Login plugin
This commit is contained in:
Flavio Copes
2016-06-17 19:31:12 +02:00
parent ac67fb7337
commit d1cb75b6a2
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
# v1.1.0-rc.3
## 06/xx/2016
1. [](#new)
* Add a onPageFallBackUrl event when starting the fallbackUrl() method to allow the Login plugin to protect the page media
1. [](#bugfix)
* Respect `enable_asset_timestamp` settings for pipelined Assets [#906](https://github.com/getgrav/grav/issues/906)
* Fixed collections end dates for 32-bit systems [#902](https://github.com/getgrav/grav/issues/902)
# v1.1.0-rc.2
## 06/14/2016

View File

@@ -446,6 +446,8 @@ class Grav extends Container
*/
public function fallbackUrl($path)
{
$this->fireEvent('onPageFallBackUrl');
/** @var Uri $uri */
$uri = $this['uri'];