diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2017-03-18 03:39:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-18 03:39:13 +0300 |
commit | 77fb7f76d09e9e92dc2f44ee0a047b5f751da94d (patch) | |
tree | 7e7e279782a6206a95f6376bb39d43f1c05e4662 /plugins | |
parent | 794e5d45ed4a74a2970370b45b9fea85e5c08672 (diff) |
Post current action in Template.beforeContent event (#11481)
* Post current action in Template.beforeContent event
Be good to have this as well when wanting to restrict content to certain actions
* for consistency also add event to dashboard
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Morpheus/templates/admin.twig | 2 | ||||
-rw-r--r-- | plugins/Morpheus/templates/dashboard.twig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Morpheus/templates/admin.twig b/plugins/Morpheus/templates/admin.twig index 4fc89289e8..11907c0e75 100644 --- a/plugins/Morpheus/templates/admin.twig +++ b/plugins/Morpheus/templates/admin.twig @@ -25,7 +25,7 @@ {% import 'ajaxMacros.twig' as ajax %} {{ ajax.requestErrorDiv(emailSuperUser|default(''), areAdsForProfessionalServicesEnabled, currentModule) }} - {{ postEvent("Template.beforeContent", "admin", currentModule) }} + {{ postEvent("Template.beforeContent", "admin", currentModule, currentAction) }} <div class="page"> diff --git a/plugins/Morpheus/templates/dashboard.twig b/plugins/Morpheus/templates/dashboard.twig index 9bb9bf19a7..bc5cd070af 100644 --- a/plugins/Morpheus/templates/dashboard.twig +++ b/plugins/Morpheus/templates/dashboard.twig @@ -35,7 +35,7 @@ <input role="yes" type="button" value="{{ 'General_Ok'|translate }}"/> </div> - {{ postEvent("Template.beforeContent", "dashboard", currentModule) }} + {{ postEvent("Template.beforeContent", "dashboard", currentModule, currentAction) }} <div class="page"> |