summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-06-17 13:21:37 +0200
committerGitHub <noreply@github.com>2016-06-17 13:21:37 +0200
commit8d027e9761d99d9929c0d82b5401c0945eb780ff (patch)
treeda632476923ceb2ac3145614b4b384d111ed1fb8 /static
parentc5f5445c4400a21275c51ba787649e98bd6d335e (diff)
parent5692f6db28ec2e20269b413121697dfb789bc599 (diff)
Merge pull request #8 from akpu1/patch-4
Removed redundant $uploadDir variable; put constant directly in $uplo…
Diffstat (limited to 'static')
-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)) {