From 96d0535d0976d0bd8b207d3240374920d49989cd Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 29 Jul 2017 22:55:58 +1000 Subject: [PATCH] Add generic onAjax handler that does nothing --- modules/backend/classes/Controller.php | 7 +++++++ modules/cms/classes/Controller.php | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index bdb91acb7..3410281e2 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -555,6 +555,13 @@ class Controller extends Extendable } } + /* + * Generic handler that does nothing + */ + if ($handler == 'onAjax') { + return true; + } + return false; } diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 5c6fdbdc0..8d9e9a9d7 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -723,6 +723,13 @@ class Controller } } + /* + * Generic handler that does nothing + */ + if ($handler == 'onAjax') { + return true; + } + return false; }