Преглед изворни кода

Use cached JSON countries file

Alan Lam пре 8 година
родитељ
комит
ae3b44b997
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      engine/form.php

+ 1 - 1
engine/form.php

@@ -108,7 +108,7 @@ class Form {
 		$file = ROOT_DIR . "/files/countries.json";
 		$threshold = time() - (7 * 86400);
 
-		if(false && file_exists($file) && filemtime($file) > $threshold) {
+		if(file_exists($file) && filemtime($file) > $threshold) {
 			$countries_json = @file_get_contents($file);
 			$countries = json_decode($countries_json);
 		}