From c77f2f0d63dfa1fc28ed0854b9c0a41567cdfe2f Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 12 Mar 2021 15:28:25 -0500 Subject: [PATCH] Bump version to 3.0.174 --- wire/core/ProcessWire.php | 2 +- wire/modules/Process/ProcessPageView.module | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 22839cf6..a496f736 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -79,7 +79,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 173; + const versionRevision = 174; /** * Version suffix string (when applicable) diff --git a/wire/modules/Process/ProcessPageView.module b/wire/modules/Process/ProcessPageView.module index 787849b2..0716d313 100644 --- a/wire/modules/Process/ProcessPageView.module +++ b/wire/modules/Process/ProcessPageView.module @@ -311,7 +311,12 @@ class ProcessPageView extends Process { if(!$hooks->hasPathHooks()) continue; $this->setResponseType(self::responseTypePathHook); - $out = $this->pathHooks($requestPath, $out); + + try { + $out = $this->pathHooks($requestPath, $out); + } catch(Wire404Exception $e) { + $out = false; + } // allow for pathHooks() $event->return to persist between init and ready states // this makes it possible for ready() call to examine $event->return from init() call