Project

General

Profile

Revision 6dea1698

Added by Jocelyn Dealande over 8 years ago

Use propper RefPoint::get_all() instead of requiring ref_points.local.php

View differences:

class/RefPoint.class.php
29 29
   return self::$all_ref_points_cache;
30 30
  }
31 31

  
32
  public static function get_all() {
33
    self::load_if_needed();
34
    $ref_points_objs = array();
35
    foreach (self::$all_ref_points_cache as $name => $vals) {
36
      $ref_points_objs[] = new RefPoint($name, $vals);
37
    }
38
    return $ref_points_objs;
39
  }
40

  
32 41
  public static function get($name) {
33 42
    self::load_if_needed();
34 43
    $values = self::$all_ref_points_cache[$name];

Also available in: Unified diff