Commit 3b176853 authored by Klaas Eikelboom's avatar Klaas Eikelboom

#1 fixes Class 'CRM_Core_Smarty' not found.

parent 5aa93d25
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* This hack is needed because we are not a native civicrm extension. * This hack is needed because we are not a native civicrm extension.
*/ */
function webform_civirules_menu_get_item_alter(&$router_item, $path, $original_map) { function webform_civirules_menu_get_item_alter(&$router_item, $path, $original_map) {
civicrm_initialize();
if ($path == "civicrm/civirules/conditions/webform_civirules_webform_is") { if ($path == "civicrm/civirules/conditions/webform_civirules_webform_is") {
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
$smarty = CRM_Core_Smarty::singleton(); $smarty = CRM_Core_Smarty::singleton();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment