CRM-21787: Keep up-to-date without running GenCode on all builds
[civicrm-core.git] / CRM / Core / Component.php
index 4c2ad4c5185d1e9cf2c3901ced560bdba6b3d6f0..988a7059f1b3e75aa646182fa515d96f0662d3f0 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -30,7 +30,7 @@
  * CiviCRM components
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  * $Id$
  *
  */
@@ -139,7 +139,7 @@ class CRM_Core_Component {
   }
 
   static public function flushEnabledComponents() {
-    self::getEnabledComponents(TRUE);
+    unset(Civi::$statics[__CLASS__]);
   }
 
   /**