Skip to content

Commit

Permalink
Merge pull request civicrm#8 from dlobo/CRM-12652
Browse files Browse the repository at this point in the history
CRM-12652
  • Loading branch information
kurund committed May 24, 2013
2 parents 5319c3b + dca3682 commit 284ada8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/helpers/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
jimport('joomla.application.component.helper');
class CivicrmHelperApi {
function civiInit() {
define('CIVICRM_SETTINGS_PATH', JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_civicrm' . DS . 'civicrm.settings.php');
if (!defined('CIVICRM_SETTINGS_PATH')) {
define('CIVICRM_SETTINGS_PATH', JPATH_BASE . '/components/com_civicrm/civicrm.settings.php');
}
require_once CIVICRM_SETTINGS_PATH;

require_once 'CRM/Core/Config.php';
Expand Down

0 comments on commit 284ada8

Please sign in to comment.