From 5692f6db28ec2e20269b413121697dfb789bc599 Mon Sep 17 00:00:00 2001 From: akpu1 Date: Fri, 17 Jun 2016 20:29:52 +1000 Subject: Removed redundant $uploadDir variable; put constant directly in $uploadFile --- static/php/upload.php | 3 +-- 1 file changed, 1 insertion(+), 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)) { -- cgit v1.2.3