only variables can be sent by reference (strict standards)

This commit is contained in:
Mikael Nordfeldth
2015-06-25 20:13:27 +02:00
parent 030b570051
commit d5a24da167
6 changed files with 76 additions and 46 deletions

View File

@@ -85,7 +85,8 @@ class AvatarLink
// yuck!
static function mediatype($filename) {
$ext = strtolower(end(explode('.', $filename)));
$parts = explode('.', $filename);
$ext = strtolower(end($parts));
if ($ext == 'jpeg') {
$ext = 'jpg';
}