Merge pull request #911 from agh1/membership-dash-counts-new
[civicrm-core.git] / CRM / Core / Block.php
index aa2017d122aa0789a9d14b457ec0415de43ed643..b4292788b640450ae2d2f0796f1d7f5b6a237c6a 100644 (file)
@@ -166,7 +166,7 @@ class CRM_Core_Block {
           'info' => ts('CiviCRM Full-text Search'),
           'subject' => ts('Full-text Search'),
           'active' => TRUE,
-          'cache' => BLOCK_CACHE_GLOBAL,
+          'cache' => BLOCK_NO_CACHE,
           'visibility' => 1,
           'weight' => -94,
           'status' => 0,
@@ -361,10 +361,10 @@ class CRM_Core_Block {
       if (!empty($config->enableComponents)) {
         // check if we can process credit card contribs
         $newCredit = CRM_Core_Payment::allowBackofficeCreditCard();
-        
+
         foreach ($components as $componentName => $obj) {
           if (in_array($componentName, $config->enableComponents)) {
-            eval('$obj->creatNewShortcut( $shortCuts, $newCredit );');
+            $obj->creatNewShortcut($shortCuts, $newCredit);
           }
         }
       }