From 3b17685352652e43de7cccb54b0866af32e403de Mon Sep 17 00:00:00 2001 From: Klaas Eikelboom Date: Tue, 30 Oct 2018 13:12:00 +0100 Subject: [PATCH] #1 fixes Class 'CRM_Core_Smarty' not found. --- webform_civirules.module | 1 + 1 file changed, 1 insertion(+) diff --git a/webform_civirules.module b/webform_civirules.module index 7f07e18..3b883d7 100644 --- a/webform_civirules.module +++ b/webform_civirules.module @@ -7,6 +7,7 @@ * This hack is needed because we are not a native civicrm extension. */ function webform_civirules_menu_get_item_alter(&$router_item, $path, $original_map) { + civicrm_initialize(); if ($path == "civicrm/civirules/conditions/webform_civirules_webform_is") { set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); $smarty = CRM_Core_Smarty::singleton(); -- GitLab