Shouldn't have removed that - adding it back CRM-12339
authorColeman Watts <coleman@civicrm.org>
Sat, 13 Apr 2013 22:44:51 +0000 (15:44 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 00:56:18 +0000 (17:56 -0700)
CRM/Core/Resources.php

index 5be786320e923461ef26de2fc0e83e6040ffe86a..d5c39145e9e74244ee43cb5dfbdce20d26cf863b 100644 (file)
@@ -219,6 +219,8 @@ class CRM_Core_Resources {
    * @return CRM_Core_Resources
    */
   public function addSettingsFactory($callable) {
+    // Make sure our callback has been registered
+    $this->addSetting(array());
     $this->settingsFactories[] = $callable;
     return $this;
   }