From d1cb75b6a21a730202385c2e43b0bc1fc53b22f8 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 17 Jun 2016 19:31:12 +0200 Subject: [PATCH] Add a onPageFallBackUrl event when starting the fallbackUrl() method Use case: allow to password-protect page media too via the Login plugin --- CHANGELOG.md | 9 +++++++++ system/src/Grav/Common/Grav.php | 2 ++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b00b621c..a1e15287e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 8f5bba8b3..02995f564 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -446,6 +446,8 @@ class Grav extends Container */ public function fallbackUrl($path) { + $this->fireEvent('onPageFallBackUrl'); + /** @var Uri $uri */ $uri = $this['uri'];