Added comments to javascript code #215

Merged
11319801 merged 65 commits from kevin-prototype into master 2017-02-03 21:19:51 +01:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 9165f8fa1b - Show all commits

View File

@@ -7,6 +7,9 @@
* @throws HappyAlert * @throws HappyAlert
*/ */
function updateAvatar(int $group = 0) { function updateAvatar(int $group = 0) {
if (!array_key_exists("pp", $_FILES)) {
throw new AngryAlert("Geen afbeelding meegegeven!");
}
$publicDir = "/var/www/html/public/"; $publicDir = "/var/www/html/public/";
$tmpImg = $_FILES["pp"]["tmp_name"]; $tmpImg = $_FILES["pp"]["tmp_name"];
$avatarDir = $group ? "uploads/groupavatar/" : "uploads/profilepictures/"; $avatarDir = $group ? "uploads/groupavatar/" : "uploads/profilepictures/";

View File

@@ -62,6 +62,7 @@ $groupinfo = getGroupSettings($_GET["groupID"]);
name="pp" name="pp"
accept="image/*" accept="image/*"
size="4000000" size="4000000"
required
> >
</li> </li>
<li> <li>