Forráskód Böngészése

Modified data directory

Iñigo Valentin 6 éve
szülő
commit
d60dfc7a12
3 módosított fájl, 2 hozzáadás és 4 törlés
  1. 0 3
      application/data/.gitignore
  2. 1 0
      data/.gitignore
  3. 1 1
      public/API/v1/log-profile/index.php

+ 0 - 3
application/data/.gitignore

@@ -1,3 +0,0 @@
-# Profiles are stored in this folder, they must be ignored.
-
-*.json

+ 1 - 0
data/.gitignore

@@ -0,0 +1 @@
+*.json

+ 1 - 1
public/API/v1/log-profile/index.php

@@ -14,7 +14,7 @@
             $uname = $winfo->{"wizard_name"};
             $uid = $winfo->{"wizard_id"};
             $dtime = (new DateTime())->format('Y-m-dTH:i:s');
-            $fname = ($_SERVER["DOCUMENT_ROOT"] . "/../application/data/profile_" . $uid . "_" . $uname . "_" . $dtime . ".json");
+            $fname = ($_SERVER["DOCUMENT_ROOT"] . "/../data/profile_" . $uid . "_" . $uname . "_" . $dtime . ".json");
             file_put_contents($fname, $data);
             $cmd = $_SERVER["DOCUMENT_ROOT"] . "/../application/bin/log-profile.py " . $key . " " . $fname;
             $out = [];