projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit '762fe6d92bc' into 4.5-missing-prs
[civicrm-core.git]
/
CRM
/
Utils
/
System
/
DrupalBase.php
diff --git
a/CRM/Utils/System/DrupalBase.php
b/CRM/Utils/System/DrupalBase.php
index 7452ab8c7b7d1ec575da823978fda06c0d59aaf8..a881144a69ec84bb3233467d7f92b759a8d1338e 100644
(file)
--- a/
CRM/Utils/System/DrupalBase.php
+++ b/
CRM/Utils/System/DrupalBase.php
@@
-280,7
+280,21
@@
abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base {
*/
function logger($message) {
if (CRM_Core_Config::singleton()->userFrameworkLogging) {
*/
function logger($message) {
if (CRM_Core_Config::singleton()->userFrameworkLogging) {
- watchdog('civicrm',
$message
, NULL, WATCHDOG_DEBUG);
+ watchdog('civicrm',
'%message', array('%message' => $message)
, NULL, WATCHDOG_DEBUG);
}
}
}
}
+
+ /**
+ * Flush css/js caches
+ */
+ function clearResourceCache() {
+ _drupal_flush_css_js();
+ }
+
+ /**
+ * Append to coreResourcesList
+ */
+ function appendCoreResources(&$list) {
+ $list[] = 'js/crm.drupal.js';
+ }
}
}