Skip to content
Snippets Groups Projects
Commit b3651f10 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #2306 from totten/master-hook-jimport

CRM_Utils_Hook_Joomla - Fix error loading JPluginHelper in Joomla 3.2
parents c1ec6399 45581edd
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ class CRM_Core_CodeGen_Util_Template {
unlink($outpath);
foreach ($inputs as $infile) {
// FIXME: does not beautify. Document.
file_put_contents($outpath, $this->smarty->fetch($infile), FILE_APPEND);
file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND);
}
}
......
......@@ -44,6 +44,7 @@ class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook {
if (defined('_JEXEC')) {
//Invoke the Joomla plugin system to observe to civicrm events.
jimport('joomla.plugin.helper');
jimport('cms.plugin.helper'); // Joomla 3.2
JPluginHelper::importPlugin('civicrm');
// get app based on cli or web
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment