Browse Source

Updated uploadclass - Configurable var moved to config.

tags/rls1
kenn408k 6 years ago
parent
commit
beb85b2214
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      .gitignore
  2. 1
    1
      classes/upload.class.php

+ 2
- 1
.gitignore View File

1
-/classes/config.class.php
1
+/classes/config.class.php
2
+/content/testfile.php

+ 1
- 1
classes/upload.class.php View File

53
                 return false; // Return false when upload fails.
53
                 return false; // Return false when upload fails.
54
             } else {
54
             } else {
55
                 // Return where the image was uploaded to.
55
                 // Return where the image was uploaded to.
56
-                return Config::$sys_url.'img/uploads/'.$randomname.'.'.$extension;
56
+                return Config::$sys_url.Config::$file_path.$randomname.'.'.$extension;
57
             }
57
             }
58
         }
58
         }
59
     }
59
     }

Loading…
Cancel
Save