summaryrefslogtreecommitdiff
path: root/static/php
diff options
context:
space:
mode:
authorakpu1 <akpu1@inventati.org>2016-06-17 12:29:52 +0200
committerGitHub <noreply@github.com>2016-06-17 12:29:52 +0200
commit5692f6db28ec2e20269b413121697dfb789bc599 (patch)
tree7d5031ea047dcd66df088a66108d4a501e8f6d39 /static/php
parent3f4c47090dc285608e3c051eddf849bf5f0dd498 (diff)
Removed redundant $uploadDir variable; put constant directly in $uploadFile
Diffstat (limited to 'static/php')
-rw-r--r--static/php/upload.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/static/php/upload.php b/static/php/upload.php
index 2889da6..c8082e6 100644
--- a/static/php/upload.php
+++ b/static/php/upload.php
@@ -110,8 +110,7 @@ function uploadFile($file)
$newname = generateName($file);
// Store the file's full file path in memory
- $uploadDir = POMF_FILES_ROOT;
- $uploadFile = $uploadDir . $newname;
+ $uploadFile = POMF_FILES_ROOT . $newname;
// Attempt to move it to the static directory
if (!move_uploaded_file($file->tempfile, $uploadFile)) {