Page MenuHomeIn-Portal Phabricator

D523.id1346.diff
No OneTemporary

File Metadata

Created
Sat, Jun 28, 4:19 PM

D523.id1346.diff

Index: branches/5.2.x/core/kernel/managers/request_manager.php
===================================================================
--- branches/5.2.x/core/kernel/managers/request_manager.php
+++ branches/5.2.x/core/kernel/managers/request_manager.php
@@ -145,10 +145,15 @@
$this->Application->UnitConfigReader->runAfterConfigRead($regs[1]);
}
- if ( !$this->Application->eventImplemented($event) ) {
- $false = false;
+ try {
+ $this->Application->eventImplemented($event);
+ }
+ catch ( Exception $e ) {
+ if ( !$this->Application->isAdmin && !$this->Application->isDebugMode() ) {
+ $this->Application->UrlManager->show404();
+ }
- return $false;
+ throw $e;
}
$event->SetRedirectParam('opener', 's'); // stay on same page after event is called

Event Timeline