X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=bin%2Fcli.class.php;h=de72c475b41673eb7f3297a250fd035059de530d;hb=a29a45d40bad75f52f1a13ecc63cc16c220171cb;hp=1e44a962a72798329ab906fe021bd9d0d8ceb2a6;hpb=f7b1bb477e0f33154732573cdd7b990a5fba93aa;p=civicrm-core.git diff --git a/bin/cli.class.php b/bin/cli.class.php index 1e44a962a7..de72c475b4 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -201,7 +201,9 @@ class civicrm_cli { chdir($civicrm_root); require_once ('civicrm.config.php'); // autoload - require_once $civicrm_root . '/CRM/Core/ClassLoader.php'; + if ( !class_exists('CRM_Core_ClassLoader') ) { + require_once $civicrm_root . '/CRM/Core/ClassLoader.php'; + } CRM_Core_ClassLoader::singleton()->register(); $this->_config = CRM_Core_Config::singleton();