CRM-15735 fix - Update payment status for pay-later membership renewal ignores Receiv...
[civicrm-core.git] / CRM / Core / Module.php
index 58a848c29c05c10f9564a3e5aa0757dc76d81696..ca379d1751073aa4651878c6e624757fac61e5c6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * A module is any software package that participates in the hook
@@ -48,7 +48,7 @@ class CRM_Core_Module {
   public $is_active;
 
   /**
-   * @param $name
+   * @param string $name
    * @param $is_active
    */
   public function __construct($name, $is_active) {
@@ -63,6 +63,7 @@ class CRM_Core_Module {
     static $result;
     if ($fresh || !is_array($result)) {
       $result = CRM_Extension_System::singleton()->getMapper()->getModules();
+      $result[] = new CRM_Core_Module('civicrm', TRUE); // pseudo-module for core
 
       $config = CRM_Core_Config::singleton();
       if (is_callable(array($config->userSystem, 'getModules'))) {
@@ -71,4 +72,5 @@ class CRM_Core_Module {
     }
     return $result;
   }
+
 }