Skip to content

Commit

Permalink
Store upload folder names into constants
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed May 21, 2018
1 parent 7720314 commit 1c8c5b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

class UploadPictureAjax
{
const PENDING_FOLDER_NAME = 'pending';
const APPROVED_FOLDER_NAME = 'img';
const MD5_BLANK_IMAGE = '7d4df9cc423720b7f1f3d672b89362be';
const IMAGE_EXTENSION = '.jpg';

Expand Down Expand Up @@ -159,7 +161,7 @@ public function display()
*/
private function getUploadFolder()
{
return $this->isWebcamPictureManualApproval() ? 'pending' : 'img';
return $this->isWebcamPictureManualApproval() ? self::PENDING_FOLDER_NAME : self::APPROVED_FOLDER_NAME;
}

/**
Expand Down

0 comments on commit 1c8c5b9

Please sign in to comment.