Project

General

Profile

Revision 9f05628b

Added by Jocelyn Dealande over 8 years ago

moved the ref_points path to a constant.

View differences:

ajax/all_points.php
2 2
require_once('../class/site_point.class.php');
3 3

  
4 4
function get_ref_points() {
5
	$ref_points_filename = '../ref_points.local.php';
6
	if (file_exists($ref_points_filename)) {
7
		include $ref_points_filename;
5
	if (file_exists(REF_POINTS_PATH)) {
6
		include REF_POINTS_PATH;
8 7
		return $ref_points;
9 8
	} else {
10 9
		return array();

Also available in: Unified diff