keep json includes in data/ subdir
[sc2-widget] / widget.php
index ddf9cb854aa8df3f823df1a03c9a1dee7d465d2e..e222f22afdc64b9ab63605ca39540458a8af7fd5 100644 (file)
@@ -18,7 +18,7 @@ function error($message, $status = 500)
 }
 
 $request = trim($_SERVER['PATH_INFO'], '/');
-$target = "$request.json";
+$target = "data/$request.json";
 $last = file_exists($target) ? filemtime($target) : 0;
 
 if ($last < time() - 3600) {