X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FDrupalBase.php;h=a881144a69ec84bb3233467d7f92b759a8d1338e;hb=53cc5b88dfc2d12f529cdbd0be88511b90507047;hp=3fc5054e03973c909bce77d6e926d94bee98455c;hpb=2da7580a63f7f1e606826ac057c4f381d0ec49bb;p=civicrm-core.git diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index 3fc5054e03..a881144a69 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -280,7 +280,7 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { */ function logger($message) { if (CRM_Core_Config::singleton()->userFrameworkLogging) { - watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG); + watchdog('civicrm', '%message', array('%message' => $message), NULL, WATCHDOG_DEBUG); } } @@ -290,4 +290,11 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { function clearResourceCache() { _drupal_flush_css_js(); } + + /** + * Append to coreResourcesList + */ + function appendCoreResources(&$list) { + $list[] = 'js/crm.drupal.js'; + } }