<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
civicrm_option_group g
WHERE v.option_group_id = g.id
AND g.name = 'activity_type'
- AND v.is_active = 1
+ AND v.is_active = 1
AND g.is_active = 1";
if (!$all) {
/**
* Flush given pseudoconstant so it can be reread from db
- * nex time it's requested.
+ * next time it's requested.
*
* @access public
* @static
* @param boolean $name pseudoconstant to be flushed
*
*/
- public static function flush($name) {
+ public static function flush($name = 'cache') {
if (isset(self::$$name)) {
self::$$name = NULL;
}