CRM-11823 - Restore generation of JS/CSS markup in the profiles' "HTML Form Snippets"
authorTim Otten <to-git@think.hm>
Tue, 12 Mar 2013 16:21:59 +0000 (12:21 -0400)
committerCiviCRM <info@civicrm.org>
Sat, 16 Mar 2013 15:55:08 +0000 (11:55 -0400)
CRM/Utils/String.php

index abafc42cf28fd05fbc17609482553bdd35772c6d..9289125691bbd5303919f3307a88d14e9b016237 100644 (file)
@@ -488,11 +488,7 @@ class CRM_Utils_String {
    */
   static function addJqueryFiles(&$html) {
     CRM_Core_Resources::singleton()->addCoreResources('html-header');
-    if (!defined('CIVICRM_UF_HEAD')) {
-      return CRM_Core_Region::instance('html-header')->render('', FALSE) . $html;
-    } else {
-      return $html;
-    }
+    return CRM_Core_Region::instance('html-header')->render('', FALSE) . $html;
   }
 
   /**