Skip to content

Instantly share code, notes, and snippets.

@konadave
konadave / MessageTemplate.php
Last active July 17, 2022 19:56
How to subclass a core class in CiviCRM
<?php
global $civicrm_root;
// whether civicrm-core enforces an immediate opening php tag and no closing php tag?
define('CIVI_STYLE_ENFORCED', FALSE);
// load core class
$core = file_get_contents("{$civicrm_root}CRM/Core/BAO/MessageTemplate.php");

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories