Marijn groups #195

Merged
11166932 merged 1 commits from marijn-groups into master 2017-02-02 16:19:09 +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
*/
function updateAvatar(int $group = 0) {
if (!array_key_exists("pp", $_FILES)) {
throw new AngryAlert("Geen afbeelding meegegeven!");
}
$publicDir = "/var/www/html/public/";
$tmpImg = $_FILES["pp"]["tmp_name"];
$avatarDir = $group ? "uploads/groupavatar/" : "uploads/profilepictures/";

View File

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