Merge branch 'angular-tests' of https://github.com/giant-rabbit/civicrm-core into...
[civicrm-core.git] / CRM / Core / Region.php
index 1dcca501ef6105983268703e49576dc68a8bedf5..15d76aa184ec376a2b123e1236f72978ea33cc5f 100644 (file)
@@ -13,7 +13,7 @@ class CRM_Core_Region {
    * @param bool $autocreate whether to automatically create an empty region
    * @return CRM_Core_Region
    */
-  static function &instance($name, $autocreate = TRUE) {
+  public static function &instance($name, $autocreate = TRUE) {
     if ( $autocreate && ! isset( self::$_instances[$name] ) ) {
       self::$_instances[$name] = new CRM_Core_Region($name);
     }
@@ -221,7 +221,7 @@ class CRM_Core_Region {
    *
    * @return int
    */
-  static function _cmpSnippet($a, $b) {
+  public static function _cmpSnippet($a, $b) {
     if ($a['weight'] < $b['weight']) return -1;
     if ($a['weight'] > $b['weight']) return 1;
     // fallback to name sort; don't really want to do this, but it makes results more stable