-- fix for CRM-13002
authorRavish Nair <ravish.nair@webaccess.co.in>
Thu, 4 Jul 2013 16:45:00 +0000 (22:15 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Thu, 4 Jul 2013 16:45:00 +0000 (22:15 +0530)
----------------------------------------
* CRM-13002: Cron Jobs in Joomla 2.5.11 Do not Run
  http://issues.civicrm.org/jira/browse/CRM-13002

CRM/Utils/System/Joomla.php

index fc7eb8f71b557864a2cbfa38db2dffefe77d558d..bff2a134cf2f382fc56d1193dca9449d26ae9c50 100644 (file)
@@ -587,7 +587,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
    * @param $loadUser boolean load cms user?
    * @param $throwError throw error on failure?
    */
-  function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = TRUE, $loadDefines = TRUE) {
+  function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = TRUE, $realPath = NULL, $loadDefines = TRUE) {
     // Setup the base path related constant.
     $joomlaBase = dirname(dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))));
 
@@ -601,6 +601,9 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
     }
 
     // Get the framework.
+    if (file_exists($joomlaBase . '/libraries/import.legacy.php')) {
+      require $joomlaBase . '/libraries/import.legacy.php';  
+    }
     require $joomlaBase . '/libraries/import.php';
     require $joomlaBase . '/libraries/joomla/event/dispatcher.php';
     require $joomlaBase . '/configuration.php';
@@ -618,7 +621,6 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
     }
     else {
       require $joomlaBase . '/libraries/joomla/uri/uri.php';
-      require $joomlaBase . '/libraries/legacy/component/helper.php';
     }
 
     jimport('joomla.application.cli');